mirror of
https://github.com/github/codeql.git
synced 2026-05-04 05:05:12 +02:00
JavaScript: Add support for for-each-in comprehensions.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
[for (year of years) if (year > 2000) year];
|
||||
year;
|
||||
[for (i of numbers) for (j of letters) i+j];
|
||||
[for (i of numbers) for (j of letters) if (i<j) i+j];
|
||||
[for (i of numbers) for (j of letters) if (i<j) i+j];
|
||||
[for each (i in numbers) i];
|
||||
|
||||
@@ -3,3 +3,4 @@ year;
|
||||
(for (i of numbers) for (j of letters) i+j);
|
||||
(for (i of numbers) for (j of letters) if (i<j) i+j);
|
||||
(x.p for (x in xs));
|
||||
(x.p for each (x in xs));
|
||||
|
||||
Reference in New Issue
Block a user