mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Don't trigger write barrier when initializing private data of new objects, bug 704136.
This commit is contained in:
parent
c26fc2aa88
commit
2fe0d7c890
@ -1054,7 +1054,7 @@ JSObject::create(JSContext *cx, js::gc::AllocKind kind,
|
||||
obj->elements = js::emptyObjectElements;
|
||||
|
||||
if (shape->getObjectClass()->hasPrivate())
|
||||
obj->setPrivate(NULL);
|
||||
obj->privateRef(shape->numFixedSlots()) = NULL;
|
||||
|
||||
if (size_t span = shape->slotSpan())
|
||||
obj->initializeSlotRange(0, span);
|
||||
|
Loading…
Reference in New Issue
Block a user