From 2c680b97e6c63ea31d0f161b8a69463b24538001 Mon Sep 17 00:00:00 2001 From: olehougaard Date: Fri, 14 Nov 2008 14:36:46 +0000 Subject: [PATCH] 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 --- src/v8natives.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);