mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-06 00:19:08 +00:00
Crash fix: Fix array splice implementation.
This commit is contained in:
+1
-1
@@ -2542,7 +2542,7 @@ js::array_splice_impl(JSContext* cx, unsigned argc, Value* vp, bool returnValueI
|
||||
Rooted<ArrayObject*> arr(cx, &obj->as<ArrayObject>());
|
||||
if (arr->lengthIsWritable()) {
|
||||
NativeObject::EnsureDenseResult res =
|
||||
arr->ensureDenseElements(cx, arr->length(), itemCount - actualDeleteCount);
|
||||
arr->ensureDenseElements(cx, len, itemCount - actualDeleteCount);
|
||||
if (res == NativeObject::ED_FAILED)
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user