Reviewers: Mads Ager, Description: Oops. Forgot to throw *new* $EvalError.
Please review this at http://codereview.chromium.org/10749 SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/v8natives.js Index: src/v8natives.js =================================================================== --- src/v8natives.js (revision 757) +++ src/v8natives.js (working copy) @@ -106,8 +106,8 @@ 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); --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
