mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Avoid assert botch when adding properties to objects, bug 684505.
This commit is contained in:
parent
7ac1c16082
commit
7e3df0c914
@ -642,7 +642,7 @@ JSObject::addPropertyInternal(JSContext *cx, jsid id,
|
||||
bool stableSlot =
|
||||
(slot == SHAPE_INVALID_SLOT) ||
|
||||
lastProp->hasMissingSlot() ||
|
||||
(slot == lastProp->slot() + 1);
|
||||
(slot == lastProp->maybeSlot() + 1);
|
||||
JS_ASSERT_IF(!allowDictionary, stableSlot);
|
||||
if (allowDictionary &&
|
||||
(!stableSlot || lastProp->entryCount() >= PropertyTree::MAX_HEIGHT)) {
|
||||
|
Loading…
Reference in New Issue
Block a user