summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-17 17:00:25 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-17 17:00:25 +0100
commitc00faa3d194eb0d2154c314b4220105c0d990c5d (patch)
treeb4e4f8abe562b375ac75523351de27b06d2db30c
parent4a4b951bfcf0e0b2323ea94735a1c9db7d08ecd7 (diff)
downloadUXP-c00faa3d194eb0d2154c314b4220105c0d990c5d.tar
UXP-c00faa3d194eb0d2154c314b4220105c0d990c5d.tar.gz
UXP-c00faa3d194eb0d2154c314b4220105c0d990c5d.tar.lz
UXP-c00faa3d194eb0d2154c314b4220105c0d990c5d.tar.xz
UXP-c00faa3d194eb0d2154c314b4220105c0d990c5d.zip
Add TI for error properties assigned by the initial shape
-rw-r--r--js/src/vm/ObjectGroup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/vm/ObjectGroup.cpp b/js/src/vm/ObjectGroup.cpp
index 7be697fb6..248abb73a 100644
--- a/js/src/vm/ObjectGroup.cpp
+++ b/js/src/vm/ObjectGroup.cpp
@@ -6,6 +6,7 @@
#include "vm/ObjectGroup.h"
+#include "jsexn.h"
#include "jshashutil.h"
#include "jsobj.h"
@@ -578,11 +579,10 @@ ObjectGroup::defaultNewGroup(ExclusiveContext* cx, const Class* clasp,
AddTypePropertyId(cx, group, nullptr, NameToId(names.lastIndex), TypeSet::Int32Type());
} else if (clasp == &StringObject::class_) {
AddTypePropertyId(cx, group, nullptr, NameToId(names.length), TypeSet::Int32Type());
- } else if (ErrorObject::isErrorClass((clasp))) {
+ } else if (IsErrorProtoKey(StandardProtoKeyOrNull(obj))) {
AddTypePropertyId(cx, group, nullptr, NameToId(names.fileName), TypeSet::StringType());
AddTypePropertyId(cx, group, nullptr, NameToId(names.lineNumber), TypeSet::Int32Type());
AddTypePropertyId(cx, group, nullptr, NameToId(names.columnNumber), TypeSet::Int32Type());
- AddTypePropertyId(cx, group, nullptr, NameToId(names.stack), TypeSet::StringType());
}
return group;