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); |