Closed Bug 1108311 Opened 5 years ago Closed 5 years ago

Remove deprecated let block and add "use strict" in about:preferences

Categories

(Toolkit :: Preferences, defect)

x86
macOS
defect
Not set

Tracking

()

RESOLVED FIXED
mozilla37

People

(Reporter: cpeterson, Assigned: cpeterson)

References

Details

Attachments

(1 file)

1. let blocks are a nonstandard JS feature of SpiderMonkey and should be removed:

JavaScript warning: chrome://browser/content/preferences/in-content/applications.js, line 1796: JavaScript 1.7's let blocks are deprecated

2. While I'm in this file, add "use strict" with no apparent problems.
Attachment #8532878 - Flags: review?(bmcbride)
Component: General → Preferences
Product: Firefox → Toolkit
Attachment #8532878 - Flags: review?(bmcbride) → review+
https://hg.mozilla.org/mozilla-central/rev/af29bc3f9660
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Blocks: 1167029
You need to log in before you can comment on or make changes to this bug.