mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 04:27:37 +00:00
[INFER] Fix bogus assert in array_pop_dense, bug 657245.
This commit is contained in:
parent
16f0db1371
commit
c4716f4f69
4
js/src/jit-test/tests/basic/bug657245.js
Normal file
4
js/src/jit-test/tests/basic/bug657245.js
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
var length = 4294967295;
|
||||
var array1 = Array(length);
|
||||
array1.pop();
|
@ -2373,7 +2373,7 @@ array_pop_dense(JSContext *cx, JSObject* obj, Value *vp)
|
||||
|
||||
if (cx->typeInferenceEnabled() && obj->getDenseArrayInitializedLength() > index)
|
||||
obj->setDenseArrayInitializedLength(index);
|
||||
obj->setDenseArrayLength(index);
|
||||
obj->setArrayLength(cx, index);
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user