Index: src/generator.js |
diff --git a/src/generator.js b/src/generator.js |
index e33cd29555352827943ddfd05203dbc0023f3994..2b0bcbd4b36b36376eda3966256604ecb339b0c1 100644 |
--- a/src/generator.js |
+++ b/src/generator.js |
@@ -95,7 +95,7 @@ InstallFunctions(GeneratorObjectPrototype, |
["next", GeneratorObjectNext, |
"throw", GeneratorObjectThrow]); |
-%FunctionSetName(GeneratorObjectIterator, '[Symbol.iterator]'); |
+SetFunctionName(GeneratorObjectIterator, symbolIterator); |
%AddNamedProperty(GeneratorObjectPrototype, symbolIterator, |
GeneratorObjectIterator, DONT_ENUM | DONT_DELETE | READ_ONLY); |
%AddNamedProperty(GeneratorObjectPrototype, "constructor", |