Closed Bug 502777 Opened 15 years ago Closed 14 years ago

JIT takes wrong branch with (-Infinity >= 3)

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

var out = 0; var sum = 0; for each (let a in [3, -1 / 0, -1 / 0, 3]) { sum += a; out = (sum >= a) ? 1 : 0; } print(out); Without JIT: 0 With JIT: 1 On the last iteration of the loop, the JIT seems to think (-Infinity >= 3) is true!
This worksforme on trunk. Jesse, do you still see this?
WFM on TM branch. I tried various counts of "-1/0," (since HOTLOOP has changed).
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.