Don't call auto tasks filter
(or any other method of Array.prototype).
#1358
Labels
filter
(or any other method of Array.prototype).
#1358
What version of async are you using?
2.1.4
Which environment did the issue occur in (Node version/browser version)
Node 6.9.4
What did you do? Please include a minimal reproducable case illustrating issue.
What did you expect to happen?
Logs error but doesn't raise exception.
What was the actual result?
This is because of:
listeners
variable initially declared as an object, being transformed to array at some point (line 1614) for some reason, which is a bad idea in general.hasOwnProperty
check. Someone might as well call taskhasOwnProperty
.The text was updated successfully, but these errors were encountered: