Index: src/v8natives.js |
=================================================================== |
--- src/v8natives.js (revision 12439) |
+++ src/v8natives.js (working copy) |
@@ -1654,7 +1654,9 @@ |
// The call to SetNewFunctionAttributes will ensure the prototype |
// property of the resulting function is enumerable (ECMA262, 15.3.5.2). |
- var f = %CompileString(source)(); |
+ var global_receiver = %GlobalReceiver(global); |
+ var f = %_CallFunction(global_receiver, %CompileString(source)); |
+ |
%FunctionMarkNameShouldPrintAsAnonymous(f); |
return %SetNewFunctionAttributes(f); |
} |