mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix misuse of shape->slot(), bug 703818.
This commit is contained in:
parent
74b1236011
commit
c26fc2aa88
3
js/src/jit-test/tests/basic/bug703818.js
Normal file
3
js/src/jit-test/tests/basic/bug703818.js
Normal file
@ -0,0 +1,3 @@
|
||||
Object.defineProperty(Namespace.prototype, "toString", {
|
||||
enumerable: true
|
||||
})
|
@ -400,7 +400,7 @@ JSObject::getChildProperty(JSContext *cx, Shape *parent, Shape &child)
|
||||
/* Slots can only be allocated out of order on objects in dictionary mode. */
|
||||
JS_ASSERT(inDictionaryMode() ||
|
||||
parent->hasMissingSlot() ||
|
||||
child.slot() == parent->slot() + 1);
|
||||
child.slot() == parent->maybeSlot() + 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user