Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
leibale opened this issue Aug 2, 2022 · 1 comment · Fixed by #10017
Closed

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

leibale opened this issue Aug 2, 2022 · 1 comment · Fixed by #10017
Assignees
Labels
acknowledged GitHub staff acknowledges this issue bug Something isn't working JS

Comments

@leibale
Copy link

leibale commented Aug 2, 2022

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

@hmakholm
Copy link
Contributor

hmakholm commented Aug 3, 2022

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

@hmakholm hmakholm added bug Something isn't working acknowledged GitHub staff acknowledges this issue and removed false-positive labels Aug 3, 2022
@erik-krogh erik-krogh self-assigned this Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acknowledged GitHub staff acknowledges this issue bug Something isn't working JS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants