mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
Bug 1057582 - Remove a bogus assert. r=bhackett
This commit is contained in:
parent
38fd3fb707
commit
f980f5fb99
10
js/src/jit-test/tests/ion/bug1057582.js
Normal file
10
js/src/jit-test/tests/ion/bug1057582.js
Normal file
@ -0,0 +1,10 @@
|
||||
Object.defineProperty(Object.prototype, "0", {configurable: true});
|
||||
delete Object.prototype[0];
|
||||
|
||||
function makeArray() {
|
||||
var arr = [];
|
||||
for (var i = 0; i < 10; i++)
|
||||
arr.push(true);
|
||||
return arr;
|
||||
}
|
||||
makeArray();
|
@ -402,7 +402,6 @@ ArrayPushDense(JSContext *cx, HandleObject obj, HandleValue v, uint32_t *length)
|
||||
{
|
||||
JS_ASSERT(obj->is<ArrayObject>());
|
||||
JS_ASSERT(obj->as<ArrayObject>().lengthIsWritable());
|
||||
JS_ASSERT(!ObjectMayHaveExtraIndexedProperties(obj));
|
||||
|
||||
uint32_t idx = obj->as<ArrayObject>().length();
|
||||
JSObject::EnsureDenseResult result = obj->ensureDenseElements(cx, idx, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user