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
This commit is contained in:
olehougaard 2008-11-14 14:36:46 +00:00
parent 2173d21458
commit 2c680b97e6

View File

@ -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);