| Index: test/mjsunit/es6/generators-mirror.js
|
| diff --git a/test/mjsunit/es6/generators-mirror.js b/test/mjsunit/es6/generators-mirror.js
|
| index bf21f4dff5229378b6bc3432e8006c1b657758c4..60ae2aaecd623c0d9f1934d65814e7c13e8c7217 100644
|
| --- a/test/mjsunit/es6/generators-mirror.js
|
| +++ b/test/mjsunit/es6/generators-mirror.js
|
| @@ -24,7 +24,7 @@ MirrorRefCache.prototype.lookup = function(handle) {
|
| return this.refs_[handle];
|
| }
|
|
|
| -function TestGeneratorMirror(g, status, line, column, receiver) {
|
| +function TestGeneratorMirror(g, status, line, column) {
|
| // Create mirror and JSON representation.
|
| var mirror = debug.MakeMirror(g);
|
| var serializer = debug.MakeMirrorSerializer();
|
| @@ -44,7 +44,6 @@ function TestGeneratorMirror(g, status, line, column, receiver) {
|
| assertFalse(mirror.isPrimitive());
|
| assertEquals('Generator', mirror.className());
|
|
|
| - assertEquals(receiver, mirror.receiver().value());
|
| assertEquals(generator, mirror.func().value());
|
|
|
| assertEquals(status, mirror.status());
|
| @@ -59,18 +58,16 @@ function TestGeneratorMirror(g, status, line, column, receiver) {
|
| assertEquals(undefined, loc);
|
| }
|
|
|
| - TestInternalProperties(mirror, status, receiver);
|
| + TestInternalProperties(mirror, status);
|
| }
|
|
|
| -function TestInternalProperties(mirror, status, receiver) {
|
| +function TestInternalProperties(mirror, status) {
|
| var properties = mirror.internalProperties();
|
| assertEquals(3, properties.length);
|
| assertEquals("[[GeneratorStatus]]", properties[0].name());
|
| assertEquals(status, properties[0].value().value());
|
| assertEquals("[[GeneratorFunction]]", properties[1].name());
|
| assertEquals(generator, properties[1].value().value());
|
| - assertEquals("[[GeneratorReceiver]]", properties[2].name());
|
| - assertEquals(receiver, properties[2].value().value());
|
| }
|
|
|
| var iter = generator(function() {
|
| @@ -97,16 +94,16 @@ var iter2 = generator.call(obj, function() {
|
| var mirror = debug.MakeMirror(iter2);
|
| assertEquals('running', mirror.status());
|
| assertEquals(undefined, mirror.sourceLocation());
|
| - TestInternalProperties(mirror, 'running', obj);
|
| + TestInternalProperties(mirror, 'running');
|
| });
|
|
|
| -TestGeneratorMirror(iter2, 'suspended', 7, 19, obj);
|
| +TestGeneratorMirror(iter2, 'suspended', 7, 19);
|
|
|
| iter2.next();
|
| -TestGeneratorMirror(iter2, 'suspended', 9, 2, obj);
|
| +TestGeneratorMirror(iter2, 'suspended', 9, 2);
|
|
|
| iter2.next();
|
| -TestGeneratorMirror(iter2, 'suspended', 11, 2, obj);
|
| +TestGeneratorMirror(iter2, 'suspended', 11, 2);
|
|
|
| iter2.next();
|
| -TestGeneratorMirror(iter2, 'closed', 0, 0, obj);
|
| +TestGeneratorMirror(iter2, 'closed', 0, 0);
|
|
|