Reviewers: Toon Verwaest,

Description:
Wrap captureStackTrace in a try-catch when constructing an error.

[email protected]

Please review this at https://codereview.chromium.org/370993003/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+1, -1 lines):
  M src/messages.js


Index: src/messages.js
diff --git a/src/messages.js b/src/messages.js
index 1df1c8c45aa65e376ba29a540b719259503031be..e3d941b0395a94b93988a0e2d3ad69e56ae877e1 100644
--- a/src/messages.js
+++ b/src/messages.js
@@ -1189,7 +1189,7 @@ function SetUpError() {
         if (!IS_UNDEFINED(m)) {
           %AddProperty(this, 'message', ToString(m), DONT_ENUM);
         }
-        captureStackTrace(this, f);
+        try { captureStackTrace(this, f); } catch (e) { }
       } else {
         return new f(m);
       }


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to