codeql icon indicating copy to clipboard operation
codeql copied to clipboard

LGTM.com - false positive top-level "for await" syntax error [JS]

Open leibale opened this issue 3 years ago • 1 comments
trafficstars

Description of the false positive

"Syntax error" for top-level "for await". "normal" top-level await works as expected.

https://lgtm.com/projects/g/redis/node-redis/snapshot/ae44ac1e1a95ebddbba290195fee840d57b04911/files/examples/set-scan.js?sort=name&dir=ASC&mode=heatmap#xf9cc4b8fc3a288c5:1

leibale avatar Aug 02 '22 21:08 leibale

Thanks for the report. It looks like a parser bug. We'll take a look.

hmakholm avatar Aug 03 '22 13:08 hmakholm