Closed Bug 792234 Opened 12 years ago Closed 12 years ago

IonMonkey: Differential Testing (--ion-eager): value of ('' / undefined) differs

Categories

(Core :: JavaScript Engine, defect)

Other Branch
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: gkw, Assigned: sstangl)

References

Details

(Keywords: regression, testcase, Whiteboard: [ion:p1:fx18])

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #789300 +++ try { (function() { Object.defineProperty(this, "s0", { get: function() { Object.defineProperty(this.t1, 7, { value: '' / window }) } }) })() { a2 = [] } s0 + '' } catch (e) {} try { t1 = (a2) gc() s0 + 2 function window() {} b = this.s0; print(function(){}); var window = (""), al } catch (e) {} shows the following on 64-bit js opt shell on IonMonkey changeset 93ebcdb7b37b without --ion-eager: function () {} but shows nothing (except newlines?) with --ion-eager, when the testcase is passed in as a CLI argument. Spun off from bug 789300 comment 2, since the patch in bug 789300 comment 3 fixes bug 789300 comment 0 but not this testcase.
Summary: IonMonkey: Differential Testing: Getting different output w/without --ion-eager → IonMonkey: Differential Testing: Getting different output w/without --ion-eager with gc
Reduced testcase: function foo() { return '' / undefined; } foo(); assertEq(foo(), NaN);
Fixes reduced and full testcases.
Attachment #662329 - Flags: review?(dvander)
Comment on attachment 662329 [details] [diff] [review] Remove erroneous folding for MDiv. Review of attachment 662329 [details] [diff] [review]: ----------------------------------------------------------------- Can you see if this closes bug 758376 as well?
Attachment #662329 - Flags: review?(dvander) → review+
(In reply to David Anderson [:dvander] from comment #3) > Can you see if this closes bug 758376 as well? It does.
Summary: IonMonkey: Differential Testing: Getting different output w/without --ion-eager with gc → IonMonkey: Differential Testing (--ion-eager): value of ('' / undefined) differs
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: