Bug 1015798 - Don't define properties on sub Error types. r=arai
authorTom Schuster <evilpies@gmail.com>
Tue, 08 Nov 2016 22:08:28 +0100
changeset 321561 138f4cfcbd9db30b15183d337e8d595a57ba9af4
parent 321560 546dbaaff8e90cda29a5b539fde989e0970eca02
child 321562 494b13143c3eb904f2c42300d0b43bbc486c5f2d
push id83644
push userevilpies@gmail.com
push dateTue, 08 Nov 2016 21:08:42 +0000
treeherdermozilla-inbound@138f4cfcbd9d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersarai
bugs1015798
milestone52.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 1015798 - Don't define properties on sub Error types. r=arai
js/src/jsexn.cpp
--- a/js/src/jsexn.cpp
+++ b/js/src/jsexn.cpp
@@ -105,18 +105,18 @@ ErrorObject::errorClassSpec_ = {
 };
 
 const ClassSpec
 ErrorObject::subErrorClassSpec_ = {
     ErrorObject::createConstructor,
     ErrorObject::createProto,
     nullptr,
     nullptr,
-    exception_methods,
-    exception_properties,
+    nullptr,
+    nullptr,
     nullptr,
     JSProto_Error
 };
 
 const ClassSpec
 ErrorObject::nonGlobalErrorClassSpec_ = {
     ErrorObject::createConstructor,
     ErrorObject::createProto,