mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-01 20:17:33 +09:00
1320408 - Part 8: Change JSObject::reportNotConfigurable and JSObject::reportNotExtensible to static method.
This commit is contained in:
parent
f32edc66ae
commit
7e0b20a7bf
3 changed files with 11 additions and 10 deletions
|
|
@ -534,7 +534,7 @@ NativeObject::addProperty(ExclusiveContext* cx, HandleNativeObject obj, HandleId
|
|||
return nullptr;
|
||||
if (!extensible) {
|
||||
if (cx->isJSContext())
|
||||
obj->reportNotExtensible(cx->asJSContext());
|
||||
JSObject::reportNotExtensible(cx->asJSContext(), obj);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
@ -727,7 +727,7 @@ CheckCanChangeAttrs(ExclusiveContext* cx, JSObject* obj, Shape* shape, unsigned*
|
|||
(*attrsp & (JSPROP_GETTER | JSPROP_SETTER | JSPROP_SHARED)))
|
||||
{
|
||||
if (cx->isJSContext())
|
||||
obj->reportNotConfigurable(cx->asJSContext(), shape->propid());
|
||||
JSObject::reportNotConfigurable(cx->asJSContext(), shape->propid());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -785,7 +785,7 @@ NativeObject::putProperty(ExclusiveContext* cx, HandleNativeObject obj, HandleId
|
|||
|
||||
if (!extensible) {
|
||||
if (cx->isJSContext())
|
||||
obj->reportNotExtensible(cx->asJSContext());
|
||||
JSObject::reportNotExtensible(cx->asJSContext(), obj);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue