1320408 - Part 7: Remove JSContext* parameter from JSObject::shouldSplicePrototype.

This commit is contained in:
Gaming4JC 2019-06-08 19:28:18 -04:00 committed by Roy Tam
commit f32edc66ae
3 changed files with 3 additions and 3 deletions

View file

@ -1408,7 +1408,7 @@ FinishObjectClassInit(JSContext* cx, JS::HandleObject ctor, JS::HandleObject pro
* only set the [[Prototype]] if it hasn't already been set.
*/
Rooted<TaggedProto> tagged(cx, TaggedProto(proto));
if (global->shouldSplicePrototype(cx)) {
if (global->shouldSplicePrototype()) {
if (!JSObject::splicePrototype(cx, global, global->getClass(), tagged))
return false;
}