mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
Add TI for error properties assigned by the initial shape (follow up)
This commit is contained in:
parent
d3df9b7b8b
commit
09ace5ee98
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue