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

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

Issue 764823002: Set @@toStringTag on GeneratorFunction prototype. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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 | « src/generator.js ('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-objects.js
diff --git a/test/mjsunit/es6/generators-objects.js b/test/mjsunit/es6/generators-objects.js
index 25bd0de79da54e98f4eaac2d7a734ac9ba6f1d46..8039ca8bb14b8cc55d21f7d3d24aa8dbda248ae9 100644
--- a/test/mjsunit/es6/generators-objects.js
+++ b/test/mjsunit/es6/generators-objects.js
@@ -67,6 +67,8 @@ function TestGeneratorObject() {
assertEquals("Generator", %_ClassOf(iter));
assertEquals("[object Generator]", String(iter));
assertEquals("[object Generator]", Object.prototype.toString.call(iter));
+ var gf = iter.__proto__.constructor;
+ assertEquals("[object GeneratorFunction]", Object.prototype.toString.call(gf));
assertEquals([], Object.getOwnPropertyNames(iter));
assertTrue(iter !== new g());
caitp (gmail) 2014/11/27 15:05:11 I think the reason I didn't add this before was th
Dmitry Lomov (no reviews) 2014/11/27 15:12:36 GeneratorFucntion is not exposed per ES6 spec.
}
« no previous file with comments | « src/generator.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698