Closed Bug 1111101 Opened 10 years ago Closed 10 years ago

delete (((foo))) should be an early error

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: Waldo, Assigned: Waldo)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

See 12.5.4.1 Early Errors for the delete operator.
Fixed by bug 1084959, which made parenthesization of any node be a no-op, *unless* that node was a string literal (this being necessary to distinguish "use strict" from its ineffective parenthesized cousin). While the idea of that fix was definitely right, and it fixed the problem it intended to fix, it was incomplete: a whole bunch more things need to have non-identity transformation under setInParens. Bug 1122286 will fix those cases shortly. I have a test for this which I'll upload here, then land next time I'm landing patches in the tree.
Status: NEW → RESOLVED
Closed: 10 years ago
Depends on: 1084959
Resolution: --- → FIXED
Attached patch Test (obsolete) — Splinter Review
Assignee: nobody → jwalden+bmo
Attachment #8554150 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: