mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
JavaScript: Fix exported name of default re-exports.
A default re-export (not part of the standard yet) looks like this: ``` export f from 'mod'; ``` What this means is that the default export of `mod` is re-exported under the name `f`. Default re-export specifiers (like `f` in this example) are modelled as a kind of default export specifier in our library, but unlike normal default export specifiers they do not export the name `default`. This was previously not modelled correctly, leading to surprising errors down the line, for example in type inference where we suddenly would no longer be able to resolve an import that otherwise looked resolvable.
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
|
||||
* Modelling of global variables has been improved. This may give more true-positive results and fewer false-positive results for a variety of queries.
|
||||
|
||||
* Modelling of re-export declarations has been improved. This may result in fewer false-positive results for a variety of queries.
|
||||
|
||||
* Modelling of taint flow through the array operations `map` and `join` has been improved. This may give additional results for the security queries.
|
||||
|
||||
* Support for popular libraries has been improved. Consequently, queries may produce more results on code bases that use the following libraries:
|
||||
|
||||
Reference in New Issue
Block a user