Open chris-l opened 10 years ago
Just like with new Function, this is also a form of eval.
new Function
After checking your a8288bc commit, you only need to add to that line || e.code === 'W066'.
|| e.code === 'W066'
W066 is the code for a "Implied eval" (the kind of eval done by setTimeout and setInterval).
setTimeout
setInterval
Check the code on the jshint source here: https://github.com/jshint/jshint/blob/2.1.4/src/shared/messages.js#L137
Just like with
new Function
, this is also a form of eval.After checking your a8288bc commit, you only need to add to that line
|| e.code === 'W066'
.W066 is the code for a "Implied eval" (the kind of eval done by
setTimeout
andsetInterval
).Check the code on the jshint source here: https://github.com/jshint/jshint/blob/2.1.4/src/shared/messages.js#L137