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)
addons.mozilla.org Graveyard
Add-on Validation
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: kmag, Assigned: kmag)
References
Details
(Whiteboard: [ReviewTeam:P1])
Attachments
(1 file)
|
742 bytes,
application/zip
|
Details |
The contents of `let` blocks are not validated. E.g.,
let (x = y) {
eval(x);
}
triggers no warning, while
eval(y);
does.
| Assignee | ||
Comment 1•12 years ago
|
||
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) {
Comment 2•12 years ago
|
||
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
| Assignee | ||
Updated•12 years ago
|
Whiteboard: [ReviewTeam]
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → kmaglione+bmo
Whiteboard: [ReviewTeam] → [ReviewTeam:P1]
Comment 3•11 years ago
|
||
Note that it seems that let blocks are a failed experiment and are now deprecated (bug 1102131), pending removal of support (bug 1023609).
| Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•