setTimeout with fat arrow function shouldn't generate a warning

RESOLVED DUPLICATE of bug 1143247

Status

addons.mozilla.org Graveyard
Add-on Validation
RESOLVED DUPLICATE of bug 1143247
3 years ago
2 years ago

People

(Reporter: Simon Bünzli, Assigned: kmag)

Tracking

Details

(Reporter)

Description

3 years ago
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.)"
:kmag, I think that one's for you ;)
Assignee: nobody → kmaglione+bmo
Eh, there's been a pull request that fixes this waiting for two months.
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1143247
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.