github / github/codeql

FP? JS import assertions

オープン
#9,104 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
false-positive
主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 15時間
マージ済み PR(30日)
141

説明

**Description of the false positive**

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

... is a proposed syntax update for JavaScript. It is already enabled in [V8](https://v8.dev/features/import-assertions) and [implemented](https://bugzilla.mozilla.org/show_bug.cgi?id=1736060) 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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。