Closed
Bug 789300
Opened 12 years ago
Closed 12 years ago
IonMonkey: Differential Testing: Getting different output w/without --ion-eager
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: gkw, Assigned: sstangl)
References
Details
(Keywords: regression, testcase, Whiteboard: [ion:p1:fx18])
Attachments
(1 file)
1.02 KB,
patch
|
dvander
:
review+
|
Details | Diff | Splinter Review |
print(NaN ? "" : function() {})
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.
![]() |
Reporter | |
Comment 1•12 years ago
|
||
(I think this might be wrong, but posting nonetheless)
autoBisect shows this is probably related to the following changeset:
The first bad revision is:
changeset: 105607:6cd206b37176
parent: 104959:b63bb39ed1c0
parent: 105606:a0240c1043ee
user: David Anderson
date: Wed Aug 29 17:51:24 2012 -0700
summary: Merge from mozilla-central.
Keywords: regression
![]() |
Reporter | |
Comment 2•12 years ago
|
||
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) {}
Locking this bug s-s because the gc in the middle of this testcase seems essential:
$ ./js testcase.js
function (){}
$ ./js --ion-eager testcase.js
As one can see, there is no output from --ion-eager. Note that "function (){}" shows when the testcase is pasted into the shell both with and without --ion-eager.
Group: core-security
![]() |
Reporter | |
Updated•12 years ago
|
OS: Windows 7 → All
Hardware: x86_64 → All
![]() |
||
Updated•12 years ago
|
Whiteboard: [ion:p1:fx18]
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #662309 -
Flags: review?(dvander)
Comment on attachment 662309 [details] [diff] [review]
Properly detect NaN truthiness.
Review of attachment 662309 [details] [diff] [review]:
-----------------------------------------------------------------
We can take the security flag off this.
Attachment #662309 -
Flags: review?(dvander) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Assignee: general → sstangl
![]() |
Reporter | |
Comment 6•12 years ago
|
||
Sean checked that comment 2 is a different bug altogether, spun off as s-s bug 792234.
This bug should only be marked non-s-s when bug 792234 is opened up.
Assignee | ||
Updated•12 years ago
|
Group: core-security
Comment 7•12 years ago
|
||
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.
Description
•