summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-17 18:07:21 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-17 18:07:21 +0100
commit77e607426f03524bdaf06bfc6799f5e9273051b9 (patch)
tree6422cbe8241bb6d654bbf01e9bb35da5d0971362
parent9472b0a60305dbf386ba1cf57323c1daeaede889 (diff)
downloadUXP-77e607426f03524bdaf06bfc6799f5e9273051b9.tar
UXP-77e607426f03524bdaf06bfc6799f5e9273051b9.tar.gz
UXP-77e607426f03524bdaf06bfc6799f5e9273051b9.tar.lz
UXP-77e607426f03524bdaf06bfc6799f5e9273051b9.tar.xz
UXP-77e607426f03524bdaf06bfc6799f5e9273051b9.zip
Add TI for error properties assigned by the initial shape (follow up)
-rw-r--r--js/src/vm/ObjectGroup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/vm/ObjectGroup.cpp b/js/src/vm/ObjectGroup.cpp
index 248abb73a..d6a8fcaa4 100644
--- a/js/src/vm/ObjectGroup.cpp
+++ b/js/src/vm/ObjectGroup.cpp
@@ -579,7 +579,7 @@ 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 (IsErrorProtoKey(StandardProtoKeyOrNull(obj))) {
+ } else if (ErrorObject::isErrorClass(clasp)) {
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());