Closed Bug 1009181 Opened 12 years ago Closed 11 years ago

Contents of `let` blocks are not validated

Categories

(addons.mozilla.org Graveyard :: Add-on Validation, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: kmag, Assigned: kmag)

References

Details

(Whiteboard: [ReviewTeam:P1])

Attachments

(1 file)

The contents of `let` blocks are not validated. E.g., let (x = y) { eval(x); } triggers no warning, while eval(y); does.
Attached file Testcase —
Validator output: Summary: ------------------------------ Detected type: Extension/Multi-Extension ------------------------------ Test failed! Errors: Error: Invalid minimum version number The minimum version that was specified is not an acceptable version number for the Mozilla product that it corresponds with. Version "4.0" isn't compatible with "android". Please check the list of valid versions at: https://addons.mozilla.org/en-US/firefox/pages/appversions/ Tier: 1 File: install.rdf Warning: Illegal or deprecated access to the `eval` global Access to the `eval` property is deprecated for security or other reasons. Tier: 3 File: bootstrap.js Line: 3 Context: > > eval(xhr.responseText); > let (x = y) {
For those of us that just now learned that 'let' could do expressions/statements and not just variable declarations: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let#Syntax
Whiteboard: [ReviewTeam]
Blocks: 1081140
Assignee: nobody → kmaglione+bmo
Whiteboard: [ReviewTeam] → [ReviewTeam:P1]
Note that it seems that let blocks are a failed experiment and are now deprecated (bug 1102131), pending removal of support (bug 1023609).
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: