1320408 - Part 6: Change JSObject::splicePrototype to static method.

This commit is contained in:
Gaming4JC 2019-06-08 19:26:40 -04:00 committed by Roy Tam
commit a38594f890
5 changed files with 13 additions and 13 deletions

View file

@ -1409,7 +1409,7 @@ FinishObjectClassInit(JSContext* cx, JS::HandleObject ctor, JS::HandleObject pro
*/
Rooted<TaggedProto> tagged(cx, TaggedProto(proto));
if (global->shouldSplicePrototype(cx)) {
if (!global->splicePrototype(cx, global->getClass(), tagged))
if (!JSObject::splicePrototype(cx, global, global->getClass(), tagged))
return false;
}
return true;