Commit 2c680b97 authored by olehougaard's avatar olehougaard

Oops. Forgot to throw *new* $EvalError.

Review URL: http://codereview.chromium.org/10749

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@760 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 2173d214
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment