Closed Bug 1129325 Opened 9 years ago Closed 9 years ago

Remove nonstandard let blocks from dom

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38
Tracking Status
firefox38 --- fixed

People

(Reporter: cpeterson, Assigned: cpeterson)

References

Details

Attachments

(1 file)

Attached patch dom.patchSplinter Review
let blocks are a nonstandard SpiderMonkey feature we would like to remove (in bug 1023609). This patch removes the let blocks in the dom/ subtree. For variable names that are declared in multiple let blocks in the same function, I just reused the same variable instead of giving them pointlessly unique names like `str2`.

The attached patch excludes whitespace changes because most of the patch is unindenting blocks of unchanged code from the removed let blocks. This made the important bits of the patch harder to review.
Attachment #8558984 - Flags: review?(mrbkap)
Comment on attachment 8558984 [details] [diff] [review]
dom.patch

Review of attachment 8558984 [details] [diff] [review]:
-----------------------------------------------------------------

In the future it'd be good to attach both the diff -w as well as the full diff. This looks good to me.
Attachment #8558984 - Flags: review?(mrbkap) → review+
https://hg.mozilla.org/mozilla-central/rev/f27d90cb3907
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Blocks: 1167029
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: