Index: src/generator.js |
diff --git a/src/generator.js b/src/generator.js |
index 14df131fbeca2695cb163062f6bd5c021dffa035..316ffa0f016c586c1817c57a719ad1bb3bf13ae7 100644 |
--- a/src/generator.js |
+++ b/src/generator.js |
@@ -44,12 +44,12 @@ function GeneratorFunctionPrototypeConstructor(x) { |
function GeneratorFunctionConstructor(arg1) { // length == 1 |
var source = NewFunctionString(arguments, 'function*'); |
- var global_receiver = %GlobalReceiver(global); |
+ var global_proxy = %GlobalProxy(global); |
// Compile the string in the constructor and not a helper so that errors |
// appear to come from here. |
var f = %CompileString(source, true); |
if (!IS_FUNCTION(f)) return f; |
- f = %_CallFunction(global_receiver, f); |
+ f = %_CallFunction(global_proxy, f); |
%FunctionMarkNameShouldPrintAsAnonymous(f); |
return f; |
} |