mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
parent
6e997648ba
commit
d3ffa46e36
4 changed files with 11 additions and 10 deletions
|
|
@ -636,10 +636,6 @@ JSXrayTraits::resolveOwnProperty(JSContext* cx, const Wrapper& jsWrapper,
|
|||
return true;
|
||||
}
|
||||
|
||||
// Handle the 'lastIndex' property for RegExp prototypes.
|
||||
if (key == JSProto_RegExp && id == GetJSIDByIndex(cx, XPCJSContext::IDX_LASTINDEX))
|
||||
return getOwnPropertyFromWrapperIfSafe(cx, wrapper, id, desc);
|
||||
|
||||
// Grab the JSClass. We require all Xrayable classes to have a ClassSpec.
|
||||
const js::Class* clasp = js::GetObjectClass(target);
|
||||
MOZ_ASSERT(clasp->specDefined());
|
||||
|
|
@ -881,10 +877,6 @@ JSXrayTraits::enumerateNames(JSContext* cx, HandleObject wrapper, unsigned flags
|
|||
if (!props.append(GetJSIDByIndex(cx, XPCJSContext::IDX_CONSTRUCTOR)))
|
||||
return false;
|
||||
|
||||
// For RegExp protoypes, add the 'lastIndex' property.
|
||||
if (key == JSProto_RegExp && !props.append(GetJSIDByIndex(cx, XPCJSContext::IDX_LASTINDEX)))
|
||||
return false;
|
||||
|
||||
// Grab the JSClass. We require all Xrayable classes to have a ClassSpec.
|
||||
const js::Class* clasp = js::GetObjectClass(target);
|
||||
MOZ_ASSERT(clasp->specDefined());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue