mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 10:18:38 +09:00
1320408 - Part 7: Remove JSContext* parameter from JSObject::shouldSplicePrototype.
This commit is contained in:
parent
a38594f890
commit
f32edc66ae
3 changed files with 3 additions and 3 deletions
|
|
@ -1408,7 +1408,7 @@ FinishObjectClassInit(JSContext* cx, JS::HandleObject ctor, JS::HandleObject pro
|
||||||
* only set the [[Prototype]] if it hasn't already been set.
|
* only set the [[Prototype]] if it hasn't already been set.
|
||||||
*/
|
*/
|
||||||
Rooted<TaggedProto> tagged(cx, TaggedProto(proto));
|
Rooted<TaggedProto> tagged(cx, TaggedProto(proto));
|
||||||
if (global->shouldSplicePrototype(cx)) {
|
if (global->shouldSplicePrototype()) {
|
||||||
if (!JSObject::splicePrototype(cx, global, global->getClass(), tagged))
|
if (!JSObject::splicePrototype(cx, global, global->getClass(), tagged))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -446,7 +446,7 @@ class JSObject : public js::gc::Cell
|
||||||
* For bootstrapping, whether to splice a prototype for Function.prototype
|
* For bootstrapping, whether to splice a prototype for Function.prototype
|
||||||
* or the global object.
|
* or the global object.
|
||||||
*/
|
*/
|
||||||
bool shouldSplicePrototype(JSContext* cx);
|
bool shouldSplicePrototype();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Environment chains.
|
* Environment chains.
|
||||||
|
|
|
||||||
|
|
@ -249,7 +249,7 @@ ObjectGroup::useSingletonForAllocationSite(JSScript* script, jsbytecode* pc, con
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
bool
|
bool
|
||||||
JSObject::shouldSplicePrototype(JSContext* cx)
|
JSObject::shouldSplicePrototype()
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* During bootstrapping, if inference is enabled we need to make sure not
|
* During bootstrapping, if inference is enabled we need to make sure not
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue