Index: src/generator.js |
diff --git a/src/generator.js b/src/generator.js |
index fa6e9764ad1865b6c7e23dc7054ec4cc11ccf431..338b7085a3cf8adf5b950000f28637bc36e58ea9 100644 |
--- a/src/generator.js |
+++ b/src/generator.js |
@@ -67,12 +67,6 @@ function GeneratorObjectIterator() { |
return this; |
} |
-function GeneratorFunctionPrototypeConstructor(x) { |
- if (%_IsConstructCall()) { |
- throw MakeTypeError('not_constructor', ['GeneratorFunctionPrototype']); |
- } |
-} |
- |
function GeneratorFunctionConstructor(arg1) { // length == 1 |
var source = NewFunctionString(arguments, 'function*'); |
var global_proxy = %GlobalProxy(global); |
@@ -109,7 +103,6 @@ function SetUpGenerators() { |
%InternalSetPrototype(GeneratorFunctionPrototype, $Function.prototype); |
%AddNamedProperty(GeneratorFunctionPrototype, |
symbolToStringTag, "GeneratorFunction", DONT_ENUM | READ_ONLY); |
- %SetCode(GeneratorFunctionPrototype, GeneratorFunctionPrototypeConstructor); |
%AddNamedProperty(GeneratorFunctionPrototype, "constructor", |
GeneratorFunction, DONT_ENUM | READ_ONLY); |
%InternalSetPrototype(GeneratorFunction, $Function); |