Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Unified Diff: test/mjsunit/es6/generators-mirror.js

Issue 1968263002: Remove unused 'receiver' field from generators (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: weaken dcheck Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/test-ast-expression-visitor.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « test/cctest/test-ast-expression-visitor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698