Closed
Bug 642248
Opened 15 years ago
Closed 15 years ago
TI: [infer failure] Object not packed array at #5:00018 popped 0: #3:10:Array:new
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: decoder, Unassigned)
References
Details
(Keywords: crash, testcase, Whiteboard: fixed-in-jaegermonkey)
The following test case (run with -n -a -m) crashes on TI tip (tested on 64
bit):
function test(makeNonArray) {
function C() {}
C.prototype = []
c = new C();
c.push("foo");
return c.length
}
assertEq(test(true), 1);
var a = [];
var b = Object.create(a);
eval('var {a} = b; c(d + 1);');
Comment 1•15 years ago
|
||
We had a bad design that decided whether new type objects are arrays by looking at whether the prototype is an array and trying to mark points where non-array objects can have array prototypes. This fixes that so type objects which will always be arrays are marked as such after their creation.
http://hg.mozilla.org/projects/jaegermonkey/rev/ecae35e0821d
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: fixed-in-jaegermonkey
| Reporter | ||
Comment 2•13 years ago
|
||
A testcase for this bug was automatically identified at js/src/jit-test/tests/basic/bug642248.js.
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•