Index: src/generator.js |
diff --git a/src/generator.js b/src/generator.js |
index 3133eddf3f3cea113513095ea167b91c589726da..77636f28704a3c33c17aa3c5262d320256b5e255 100644 |
--- a/src/generator.js |
+++ b/src/generator.js |
@@ -60,6 +60,7 @@ function SetUpGenerators() { |
DONT_ENUM | DONT_DELETE | READ_ONLY, |
["next", GeneratorObjectNext, |
"throw", GeneratorObjectThrow]); |
+ %FunctionSetName(GeneratorObjectIterator, '[Symbol.iterator]'); |
%SetProperty(GeneratorObjectPrototype, symbolIterator, GeneratorObjectIterator, |
DONT_ENUM | DONT_DELETE | READ_ONLY); |
%SetProperty(GeneratorObjectPrototype, "constructor", |