Author: olehougaard
Date: Fri Nov 14 06:36:46 2008
New Revision: 760

Modified:
    branches/bleeding_edge/src/v8natives.js

Log:
Oops. Forgot to throw *new* $EvalError.
Review URL: http://codereview.chromium.org/10749

Modified: branches/bleeding_edge/src/v8natives.js
==============================================================================
--- branches/bleeding_edge/src/v8natives.js     (original)
+++ branches/bleeding_edge/src/v8natives.js     Fri Nov 14 06:36:46 2008
@@ -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
-~----------~----~----~----~------~----~------~--~---

Reply via email to