Closed
Bug 1172158
Opened 9 years ago
Closed 9 years ago
setTimeout with fat arrow function shouldn't generate a warning
Categories
(addons.mozilla.org Graveyard :: Add-on Validation, defect)
addons.mozilla.org Graveyard
Add-on Validation
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1143247
People
(Reporter: zeniko, Assigned: kmag)
Details
Code using fat arrow functions (introduced with Gecko 22.0) such as setTimeout(() => code.focus(), 0); wrongly causes the high severity warning "`setTimeout` called in potentially dangerous manner (Warning: In order to prevent vulnerabilities, the `setTimeout` and `setInterval` functions should be called only with function expressions as their first argument.)"
Assignee | ||
Comment 2•9 years ago
|
||
Eh, there's been a pull request that fixes this waiting for two months.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Updated•8 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
•