Closed Bug 476210 Opened 15 years ago Closed 15 years ago

Decompiler round-trip change with ternary, new

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

js> f = function() { new (false ? 0 : x.y); }
function () {
    new x.y;
}
js> g = eval(uneval(f));
function () {
    new (x.y);
}

At the bytecode level:
  00003:  getprop "y"
  00006:  nullthis
vs
  00003:  callprop "y"

Related to bug 475899?
WFM.  Goes straight to "new (x.y)" now.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.