Index: src/generator.js |
diff --git a/src/generator.js b/src/generator.js |
index d041c5b223385c538954c757b2cffcc21b0628a9..56579c59d40b65bc04356619240142b242536db5 100644 |
--- a/src/generator.js |
+++ b/src/generator.js |
@@ -12,8 +12,8 @@ |
// Imports |
var GlobalFunction = global.Function; |
- |
var NewFunctionString; |
+var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); |
utils.Import(function(from) { |
NewFunctionString = from.NewFunctionString; |
@@ -102,10 +102,10 @@ utils.InstallFunctions(GeneratorObjectPrototype, |
%AddNamedProperty(GeneratorObjectPrototype, "constructor", |
GeneratorFunctionPrototype, DONT_ENUM | READ_ONLY); |
%AddNamedProperty(GeneratorObjectPrototype, |
- symbolToStringTag, "Generator", DONT_ENUM | READ_ONLY); |
+ toStringTagSymbol, "Generator", DONT_ENUM | READ_ONLY); |
%InternalSetPrototype(GeneratorFunctionPrototype, GlobalFunction.prototype); |
%AddNamedProperty(GeneratorFunctionPrototype, |
- symbolToStringTag, "GeneratorFunction", DONT_ENUM | READ_ONLY); |
+ toStringTagSymbol, "GeneratorFunction", DONT_ENUM | READ_ONLY); |
%AddNamedProperty(GeneratorFunctionPrototype, "constructor", |
GeneratorFunction, DONT_ENUM | READ_ONLY); |
%InternalSetPrototype(GeneratorFunction, GlobalFunction); |