| Index: src/generator.js
|
| diff --git a/src/generator.js b/src/generator.js
|
| index 2b0bcbd4b36b36376eda3966256604ecb339b0c1..3c925ccebb3f56c0cbe7f52a7ebb0cb15dace854 100644
|
| --- a/src/generator.js
|
| +++ b/src/generator.js
|
| @@ -72,7 +72,7 @@ function GeneratorObjectIterator() {
|
|
|
|
|
| function GeneratorFunctionConstructor(arg1) { // length == 1
|
| - var source = NewFunctionString(arguments, 'function*');
|
| + var source = $newFunctionString(arguments, 'function*');
|
| var global_proxy = %GlobalProxy(global);
|
| // Compile the string in the constructor and not a helper so that errors
|
| // appear to come from here.
|
| @@ -90,12 +90,12 @@ function GeneratorFunctionConstructor(arg1) { // length == 1
|
|
|
| // Set up non-enumerable functions on the generator prototype object.
|
| var GeneratorObjectPrototype = GeneratorFunctionPrototype.prototype;
|
| -InstallFunctions(GeneratorObjectPrototype,
|
| +$installFunctions(GeneratorObjectPrototype,
|
| DONT_ENUM,
|
| ["next", GeneratorObjectNext,
|
| "throw", GeneratorObjectThrow]);
|
|
|
| -SetFunctionName(GeneratorObjectIterator, symbolIterator);
|
| +$setFunctionName(GeneratorObjectIterator, symbolIterator);
|
| %AddNamedProperty(GeneratorObjectPrototype, symbolIterator,
|
| GeneratorObjectIterator, DONT_ENUM | DONT_DELETE | READ_ONLY);
|
| %AddNamedProperty(GeneratorObjectPrototype, "constructor",
|
|
|