mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix incorrect use of obj->setDenseArrayLength, bug 699446.
This commit is contained in:
parent
ff81f4b4d3
commit
5bfbb57aea
@ -3721,7 +3721,7 @@ NewArray(JSContext *cx, jsuint length, JSObject *proto)
|
||||
return NULL;
|
||||
/* Fixup the elements pointer and length, which may be incorrect. */
|
||||
obj->setFixedElements();
|
||||
obj->setDenseArrayLength(length);
|
||||
obj->setArrayLength(cx, length);
|
||||
if (allocateCapacity && !EnsureNewArrayElements(cx, obj, length))
|
||||
return NULL;
|
||||
return obj;
|
||||
|
Loading…
Reference in New Issue
Block a user