Closed Bug 617688 Opened 10 years ago Closed 10 years ago

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

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jandem, Unassigned)

References

(Blocks 1 open bug)

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: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.