Bug 987669 - Turn on Xrays for Error objects. r=gabor
authorBobby Holley <bobbyholley@gmail.com>
Fri, 11 Jul 2014 09:09:22 -0700
changeset 215532 a2cbaa33712041d83416da86e33618f1a4e80b58
parent 215531 e171c0317b8279076ce884ec756a204afb774290
child 215533 48b4e65d344d71e132ee97c79ab542b939d058b9
push id515
push userraliiev@mozilla.com
push dateMon, 06 Oct 2014 12:51:51 +0000
treeherdermozilla-release@267c7a481bef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgabor
bugs987669
milestone33.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 987669 - Turn on Xrays for Error objects. r=gabor
js/xpconnect/wrappers/XrayWrapper.cpp
--- a/js/xpconnect/wrappers/XrayWrapper.cpp
+++ b/js/xpconnect/wrappers/XrayWrapper.cpp
@@ -68,16 +68,18 @@ IsTypedArrayKey(JSProtoKey key)
 }
 
 // Whitelist for the standard ES classes we can Xray to.
 static bool
 IsJSXraySupported(JSProtoKey key)
 {
     if (IsTypedArrayKey(key))
         return true;
+    if (IsErrorObjectKey(key))
+        return true;
     switch (key) {
       case JSProto_Date:
       case JSProto_Object:
       case JSProto_Array:
       case JSProto_Function:
         return true;
       default:
         return false;