Commit a6fd4ba0 authored by yangguo@chromium.org's avatar yangguo@chromium.org

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

TBR=verwaest@chromium.org

Review URL: https://codereview.chromium.org/370993003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22225 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 60af0a25
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment