mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 805052 part 2. Stop using the shape's parent to get the object's global. r=waldo
This commit is contained in:
parent
42b6dec9d4
commit
f215223a81
@ -1708,7 +1708,7 @@ NewObjectCache::invalidateEntriesForShape(JSContext *cx, HandleShape shape, Hand
|
||||
if (CanBeFinalizedInBackground(kind, clasp))
|
||||
kind = GetBackgroundAllocKind(kind);
|
||||
|
||||
Rooted<GlobalObject *> global(cx, &shape->getObjectParent()->global());
|
||||
Rooted<GlobalObject *> global(cx, shape->compartment()->unsafeUnbarrieredMaybeGlobal());
|
||||
RootedObjectGroup group(cx, ObjectGroup::defaultNewGroup(cx, clasp, TaggedProto(proto)));
|
||||
|
||||
EntryIndex entry;
|
||||
|
Loading…
Reference in New Issue
Block a user