Closed
Bug 382981
Opened 17 years ago
Closed 17 years ago
Missing parens around expclo body with "delete ++x"
Categories
(Core :: JavaScript Engine, defect, P1)
Core
JavaScript Engine
Tracking
()
VERIFIED
FIXED
mozilla1.9alpha6
People
(Reporter: jruderman, Assigned: brendan)
References
Details
(Keywords: testcase)
Attachments
(1 file)
(deleted),
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
js> (function () delete ++x)
function () ++x, true
That evaluates to |true| rather than to an equivalent function.
Reporter | ||
Comment 1•17 years ago
|
||
js> (function () delete *)
function () *, true
Assignee | ||
Comment 2•17 years ago
|
||
This is necessary, and it should not cause over-parenthesization (test hard). We emit the same sequence that would be emitted for correctly decompiled source for the testcases in this bug.
/be
Assignee | ||
Updated•17 years ago
|
OS: Mac OS X → All
Priority: -- → P1
Hardware: PC → All
Target Milestone: --- → mozilla1.9alpha6
Reporter | ||
Comment 3•17 years ago
|
||
Updated•17 years ago
|
Attachment #268658 -
Flags: review?(mrbkap) → review+
Assignee | ||
Comment 4•17 years ago
|
||
Fixed on trunk:
js/src/jsemit.c 3.259
/be
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 5•17 years ago
|
||
/cvsroot/mozilla/js/tests/js1_8/decompilation/regress-382981.js,v <-- regress-382981.js
initial revision: 1.1
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•