TypeInference: wrong result for x = -(void 0)

RESOLVED FIXED

Status

()

defect
RESOLVED FIXED
9 years ago
9 years ago

People

(Reporter: jandem, Unassigned)

Tracking

(Blocks 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: fixed-in-jaegermonkey)

---
var x = -(void 0);
assertEq(x, NaN);
---
test.js:2: Error: Assertion failed: got 0, expected NaN

Looks like it has to do with the store:

./js
js> x = -(void 0);
NaN
js> x
NaN

./js -m
js> x = -(void 0);
NaN
js> x
0
This was fixed by the patch in bug 617670.

http://hg.mozilla.org/projects/jaegermonkey/rev/c247104a1499
Depends on: 617670
Whiteboard: fixed-in-jaegermonkey
Blocks: infer-regress
No longer blocks: TypeInference
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.