Closed Bug 385204 Opened 18 years ago Closed 14 years ago

Decompilation retains extra parens in "f((x + y));"

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: regression, testcase)

js> function() { f((x + y)); } function () { f((x + y)); } I'd expect to get "f(x + y)" instead.
Keywords: regression
OS: Mac OS X → All
Hardware: PC → All
You'd have to make sure that in the "f((x = y))" case the extra parens remain though (preventing a strict warning).
There's no strict warning for f(x = y). The strict warning you're thinking of applies to if-conditions and while-conditions but not to function arguments.
Indeed, my bad, although not having a strict warning in this case seems slightly inconsistent to me. Anyway: not this bug.
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.