Index: src/generator.js |
diff --git a/src/generator.js b/src/generator.js |
index 72e64dce6e852cf032b13c06a1ee091a2b6e8be0..b35744a094f29ef0acd8baf3180bdfb7234a9084 100644 |
--- a/src/generator.js |
+++ b/src/generator.js |
@@ -74,6 +74,8 @@ function SetUpGenerators() { |
GeneratorObjectIterator, DONT_ENUM | DONT_DELETE | READ_ONLY); |
%AddNamedProperty(GeneratorObjectPrototype, "constructor", |
GeneratorFunctionPrototype, DONT_ENUM | DONT_DELETE | READ_ONLY); |
+ %AddNamedProperty(GeneratorObjectPrototype, |
+ symbolToStringTag, "Generator", DONT_ENUM | READ_ONLY); |
%InternalSetPrototype(GeneratorFunctionPrototype, $Function.prototype); |
%SetCode(GeneratorFunctionPrototype, GeneratorFunctionPrototypeConstructor); |
%AddNamedProperty(GeneratorFunctionPrototype, "constructor", |