diff --git a/src/v8natives.js b/src/v8natives.js index 79518f70b9..f3c98a5f8e 100644 --- a/src/v8natives.js +++ b/src/v8natives.js @@ -106,8 +106,8 @@ function GlobalEval(x) { if (!IS_STRING(x)) return x; if (this !== %GlobalReceiver(global)) { - throw $EvalError('The "this" object passed to eval ' + - 'must be the global object from which eval originated'); + throw new $EvalError('The "this" object passed to eval must ' + + 'be the global object from which eval originated'); } var f = %CompileString(x, 0, true);