Index: src/v8natives.js |
diff --git a/src/v8natives.js b/src/v8natives.js |
index 7fb317db7e9e2860ab4cd5c6e53da54d4a4c3de5..bad0154b0ba0ba5bb7425a38cdd9aafb82783de6 100644 |
--- a/src/v8natives.js |
+++ b/src/v8natives.js |
@@ -163,16 +163,6 @@ function GlobalParseFloat(string) { |
function GlobalEval(x) { |
if (!IS_STRING(x)) return x; |
- // For consistency with JSC we require the global object passed to |
- // eval to be the global object from which 'eval' originated. This |
- // is not mandated by the spec. |
- // We only throw if the global has been detached, since we need the |
- // receiver as this-value for the call. |
- if (!%IsAttachedGlobal(global)) { |
- throw new $EvalError('The "this" value passed to eval must ' + |
- 'be the global object from which eval originated'); |
- } |
- |
var global_proxy = %GlobalProxy(global); |
var f = %CompileString(x, false, 0); |