Closed Bug 498549 Opened 16 years ago Closed 16 years ago

TM: If the result of a demoted multiplication is 0, must undemote or we lose -0

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- beta1-fixed

People

(Reporter: gkw, Assigned: gal)

Details

(Keywords: testcase)

Attachments

(1 file)

e = 0 let(f = function(y) {++y; for each(b in [0, 1 / 0, 0 / 0, 0]) { e *= --y } }) { f(2) } print(uneval(this)) There's a "-0" in the output without -j but no "-0" in the output with -j. Does not seem to affect 1.9.1 branch. === $ ~/Desktop/tm-28982-568959fa4956/js-dbg-tm-intelmac js> e = 0 0 js> let(f = function(y) {++y; for each(b in [0, 1 / 0, 0 / 0, 0]) { e *= --y } }) { f(2) } js> print(uneval(this)) ({e:-0, b:0}) $ ~/Desktop/tm-28982-568959fa4956/js-dbg-tm-intelmac -j js> e = 0 0 js> let(f = function(y) {++y; for each(b in [0, 1 / 0, 0 / 0, 0]) { e *= --y } }) { f(2) } js> print(uneval(this)) ({e:0, b:0})
Flags: blocking1.9.2?
Summary: TM: Different result from testcase involving for...each, function, uneval → TM: If the result of a demoted multiplication is 0, must undemote or we lose -0
Attached patch patchSplinter Review
-0 sucks
Assignee: general → gal
Attachment #383446 - Flags: review?(dvander)
Attachment #383446 - Flags: review?(dvander) → review+
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Flags: blocking1.9.2? → blocking1.9.2+
No longer depends on: 501275
Flags: in-testsuite?
Mass change: adding fixed1.9.2 keyword (This bug was identified as a mozilla1.9.2 blocker which was fixed before the mozilla-1.9.2 repository was branched (August 13th, 2009) as per this query: http://is.gd/2ydcb - if this bug is not actually fixed on mozilla1.9.2, please remove the keyword. Apologies for the bugspam)
Keywords: fixed1.9.2
Bug in removed tracer code, setting in-testsuite- flag.
Flags: in-testsuite? → in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: