VBC-903: eval-like-timers
errorCategory: security
Analysis: Regex (line by line)
File types: .js, .ts, .tsx, .astro
Scope: source code only, ignoring anything inside strings and comments
Tags: security
What it reports
Passing strings to timers is eval-like and insecure at line {line}.
Flagged
js
setTimeout("poll()", 100);Not flagged
js
setTimeout(poll, 100);Pattern
regex
(setTimeout|setInterval)\s*\(\s*['"].*?['"]