mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
JS: Make test not assume implicit through for maps
This commit is contained in:
@@ -76,12 +76,12 @@ function test() {
|
||||
|
||||
{
|
||||
const grouped = Map.groupBy(x, (item) => sink(item)); // NOT OK
|
||||
sink(grouped); // NOT OK
|
||||
sink(grouped.get(unknown())); // NOT OK
|
||||
}
|
||||
{
|
||||
const list = [source()];
|
||||
const grouped = Map.groupBy(list, (item) => sink(item)); // NOT OK
|
||||
sink(grouped); // NOT OK [INCONSISTENCY]
|
||||
sink(grouped.get(unknown())); // NOT OK
|
||||
}
|
||||
{
|
||||
const data = source();
|
||||
|
||||
Reference in New Issue
Block a user