Index: src/v8natives.js |
diff --git a/src/v8natives.js b/src/v8natives.js |
index 8614dc8aedbe5e368d5a285e8b1f7404ede2dadc..782b953ea9763edf0dadbc32511d32a6deef0463 100644 |
--- a/src/v8natives.js |
+++ b/src/v8natives.js |
@@ -1859,9 +1859,7 @@ function FunctionConstructor(arg1) { // length == 1 |
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_proxy, f); |
+ var f = %_CallFunction(global_proxy, %CompileString(source, true)); |
%FunctionMarkNameShouldPrintAsAnonymous(f); |
return f; |
} |