Revision: 25282
Author: yang...@chromium.org
Date: Wed Nov 12 09:28:17 2014 UTC
Log: Reorder Error properties.
R=jkumme...@chromium.org
Review URL: https://codereview.chromium.org/717573006
https://code.google.com/p/v8/source/detail?r=25282
Modified:
/branches/bleeding_edge/src/messages.js
=======================================
--- /branches/bleeding_edge/src/messages.js Tue Nov 11 15:40:51 2014 UTC
+++ /branches/bleeding_edge/src/messages.js Wed Nov 12 09:28:17 2014 UTC
@@ -1221,13 +1221,13 @@
%AddNamedProperty(f.prototype, "name", name, DONT_ENUM);
%SetCode(f, function(m) {
if (%_IsConstructCall()) {
+ try { captureStackTrace(this, f); } catch (e) { }
// Define all the expected properties directly on the error
// object. This avoids going through getters and setters defined
// on prototype objects.
if (!IS_UNDEFINED(m)) {
%AddNamedProperty(this, 'message', ToString(m), DONT_ENUM);
}
- try { captureStackTrace(this, f); } catch (e) { }
} else {
return new f(m);
}
--
--
v8-dev mailing list
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.