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

Unified Diff: src/generator.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 | « no previous file | test/mjsunit/es6/generators-objects.js » ('j') | test/mjsunit/es6/generators-objects.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/generator.js
diff --git a/src/generator.js b/src/generator.js
index 19e7db8145141d5fb8bfa75fd0c6446adeebedab..8e9ed8f2566a7e8088e8cb26e1018967d8d9d0f2 100644
--- a/src/generator.js
+++ b/src/generator.js
@@ -101,6 +101,8 @@ function SetUpGenerators() {
%AddNamedProperty(GeneratorObjectPrototype,
symbolToStringTag, "Generator", DONT_ENUM | READ_ONLY);
%InternalSetPrototype(GeneratorFunctionPrototype, $Function.prototype);
+ %AddNamedProperty(GeneratorFunctionPrototype,
+ symbolToStringTag, "GeneratorFunction", DONT_ENUM | READ_ONLY);
%SetCode(GeneratorFunctionPrototype, GeneratorFunctionPrototypeConstructor);
%AddNamedProperty(GeneratorFunctionPrototype, "constructor",
GeneratorFunction, DONT_ENUM | DONT_DELETE | READ_ONLY);
« no previous file with comments | « no previous file | test/mjsunit/es6/generators-objects.js » ('j') | test/mjsunit/es6/generators-objects.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698