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

FP? JS import assertions #9104

Open
pygy opened this issue May 10, 2022 · 0 comments
Open

FP? JS import assertions #9104

pygy opened this issue May 10, 2022 · 0 comments

Comments

@pygy
Copy link

pygy commented May 10, 2022

Description of the false positive

import foo form "./foo.json" assert {type: "json"}

... is a proposed syntax update for JavaScript. It is already enabled in V8 and implemented in SpiderMonkey/Firefox (not sure it is enabled yet). Given that it has two implementations, it should move to the final stage 4 this year.

I don't know what your policy is on green features like this, but you currently report it as a syntax error even though it works fine in Node.

URL to the alert on the project page on LGTM.com

https://lgtm.com/projects/g/compose-regexp/compose-regexp.js/snapshot/3384157884d8cd1de08fd9935400d4663327e40c/files/scripts/postpublish.js?sort=name&dir=ASC&mode=heatmap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant