mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-19 21:57:30 +09:00
Add TI for error properties assigned by the initial shape
This commit is contained in:
parent
dd09fc2495
commit
38fabf8122
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue