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)

defect

Tracking

()

VERIFIED FIXED
mozilla1.9alpha6

People

(Reporter: jruderman, Assigned: brendan)

References

Details

(Keywords: testcase)

Attachments

(1 file)

js> (function () delete ++x) function () ++x, true That evaluates to |true| rather than to an equivalent function.
js> (function () delete *) function () *, true
Attached patch fix (deleted) — Splinter Review
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: general → brendan
Status: NEW → ASSIGNED
Attachment #268658 - Flags: review?(mrbkap)
OS: Mac OS X → All
Priority: -- → P1
Hardware: PC → All
Target Milestone: --- → mozilla1.9alpha6
Blocks: js1.8
The patch fixes both comment 0 and comment 1 for me. jsfunfuzz has been running with the patch for 10 minutes without complaining.
Attachment #268658 - Flags: review?(mrbkap) → review+
Fixed on trunk: js/src/jsemit.c 3.259 /be
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
/cvsroot/mozilla/js/tests/js1_8/decompilation/regress-382981.js,v <-- regress-382981.js initial revision: 1.1
Flags: in-testsuite+
verified fixed 1.9.0 linux/mac*/windows.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: