From: olehougaard Date: Fri, 14 Nov 2008 14:36:46 +0000 (+0000) Subject: Oops. Forgot to throw *new* $EvalError. X-Git-Tag: upstream/4.7.83~25012 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c680b97e6c63ea31d0f161b8a69463b24538001;p=platform%2Fupstream%2Fv8.git 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 --- diff --git a/src/v8natives.js b/src/v8natives.js index 79518f7..f3c98a5 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);