Closed Bug 465262 Opened 16 years ago Closed 16 years ago

TM: JIT affects truthiness of (3 > null)

Categories

(Core :: JavaScript Engine, defect, P1)

x86
macOS
defect

Tracking

()

VERIFIED FIXED
mozilla1.9.1b2

People

(Reporter: jruderman, Assigned: gal)

References

Details

(Keywords: testcase, verified1.9.1)

Attachments

(1 file)

js> for(j=0;j<5;++j) print("" + (3 > null))
true
true
false
false
false
Blocks: arithfuzz
Attached patch patchSplinter Review
Assignee: general → gal
Attachment #348645 - Flags: review?(danderson)
Attachment #348645 - Flags: review?(danderson) → review+
Fixed in TM.

http://hg.mozilla.org/tracemonkey/rev/c9d3e5cf1c99
Severity: normal → critical
Flags: blocking1.9.1?
Priority: -- → P1
Target Milestone: --- → mozilla1.9.1b2
Flags: blocking1.9.1? → blocking1.9.1+
(This didn't seem to make the merge pushed by vlad on Nov 18 at 14:11:14, so leaving open.)
This landed in the merge by vlad:

"c9d3e5cf1c99	Andreas Gal — Null converts to 0 for relations but to NaN for equality (465252, r=danderson)."

(note typo in bug number)
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
testNullRelCmp already in js1_8_1/trace/trace-test.js
Flags: in-testsuite+
Flags: in-litmus-
v 1.9.1, 1.9.2
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: