Index: src/generator.js |
diff --git a/src/generator.js b/src/generator.js |
index a0c2aff67c49be145268ed65fc1dec5908ebca2f..14df131fbeca2695cb163062f6bd5c021dffa035 100644 |
--- a/src/generator.js |
+++ b/src/generator.js |
@@ -63,14 +63,14 @@ function SetUpGenerators() { |
["next", GeneratorObjectNext, |
"throw", GeneratorObjectThrow]); |
%FunctionSetName(GeneratorObjectIterator, '[Symbol.iterator]'); |
- %SetProperty(GeneratorObjectPrototype, symbolIterator, GeneratorObjectIterator, |
- DONT_ENUM | DONT_DELETE | READ_ONLY); |
- %SetProperty(GeneratorObjectPrototype, "constructor", |
- GeneratorFunctionPrototype, DONT_ENUM | DONT_DELETE | READ_ONLY); |
+ %AddProperty(GeneratorObjectPrototype, symbolIterator, |
+ GeneratorObjectIterator, DONT_ENUM | DONT_DELETE | READ_ONLY); |
+ %AddProperty(GeneratorObjectPrototype, "constructor", |
+ GeneratorFunctionPrototype, DONT_ENUM | DONT_DELETE | READ_ONLY); |
%SetPrototype(GeneratorFunctionPrototype, $Function.prototype); |
%SetCode(GeneratorFunctionPrototype, GeneratorFunctionPrototypeConstructor); |
- %SetProperty(GeneratorFunctionPrototype, "constructor", |
- GeneratorFunction, DONT_ENUM | DONT_DELETE | READ_ONLY); |
+ %AddProperty(GeneratorFunctionPrototype, "constructor", |
+ GeneratorFunction, DONT_ENUM | DONT_DELETE | READ_ONLY); |
%SetPrototype(GeneratorFunction, $Function); |
%SetCode(GeneratorFunction, GeneratorFunctionConstructor); |
} |