Closed
Bug 476086
Opened 15 years ago
Closed 15 years ago
"Assertion failure: op == JSOP_GOTO || op == JSOP_GOTOX" with trap, array.some
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Unassigned)
Details
(Keywords: assertion, testcase)
function () { [].some([] ? null : null); } js> dis(f); flags: LAMBDA INTERPRETED main: 00000: newarray 0 00004: callprop "some" 00007: newarray 0 00011: ifeq 18 (7) 00014: null 00015: goto 19 (4) 00018: null 00019: call 1 00022: pop 00023: stop Source notes: 0: 4 [ 4] pcbase offset 4 2: 11 [ 7] cond offset 4 4: 19 [ 8] xdelta 5: 19 [ 0] pcbase offset 19 js> f(); typein:1: TypeError: null is not a function js> trap(f, 15, ''); js> f(); Assertion failure: op == JSOP_GOTO || op == JSOP_GOTOX, at ../jsopcode.cpp:5221 The assertion happens under js_ReportIsNotFunction.
Comment 1•15 years ago
|
||
f = function () { [].some([] ? null : null); } f(); trap(f, 15, ''); f(); Seems to WFM in TM tip (but still crashes 1.9.0.x opt and asserts 1.9.0.x debug at Assertion failure: !JSVAL_IS_PRIMITIVE(regs.sp[i]), at jsinterp.c:3151 ) I'm guessing this is fixed by bug 463239.
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Comment 2•15 years ago
|
||
See bug 476079 comment 3 and 4 about writing test cases for trap().
Comment 3•15 years ago
|
||
test dependent on bug 396512 (dis() should return disassembly))
You need to log in
before you can comment on or make changes to this bug.
Description
•