mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1062830 - Fix bogus assert, r=billm.
This commit is contained in:
parent
69993a52cc
commit
10c4f1d5ed
@ -1609,7 +1609,7 @@ GCMarker::saveValueRanges()
|
||||
NativeObject *obj = arr->obj;
|
||||
MOZ_ASSERT(obj->isNative());
|
||||
|
||||
HeapSlot *vp = obj->getDenseElements();
|
||||
HeapSlot *vp = obj->getDenseElementsAllowCopyOnWrite();
|
||||
if (arr->end == vp + obj->getDenseInitializedLength()) {
|
||||
MOZ_ASSERT(arr->start >= vp);
|
||||
arr->index = arr->start - vp;
|
||||
@ -1647,7 +1647,7 @@ GCMarker::restoreValueArray(NativeObject *obj, void **vpp, void **endp)
|
||||
return false;
|
||||
|
||||
uint32_t initlen = obj->getDenseInitializedLength();
|
||||
HeapSlot *vp = obj->getDenseElements();
|
||||
HeapSlot *vp = obj->getDenseElementsAllowCopyOnWrite();
|
||||
if (start < initlen) {
|
||||
*vpp = vp + start;
|
||||
*endp = vp + initlen;
|
||||
|
Loading…
Reference in New Issue
Block a user