mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
add model for the array-from polyfill
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
| arrays.js:2:16:2:23 | "source" | arrays.js:56:10:56:10 | x |
|
||||
| arrays.js:2:16:2:23 | "source" | arrays.js:60:10:60:10 | x |
|
||||
| arrays.js:2:16:2:23 | "source" | arrays.js:66:10:66:10 | x |
|
||||
| arrays.js:2:16:2:23 | "source" | arrays.js:71:10:71:10 | x |
|
||||
| arrays.js:18:22:18:29 | "source" | arrays.js:18:50:18:50 | e |
|
||||
| arrays.js:22:15:22:22 | "source" | arrays.js:23:8:23:17 | arr2.pop() |
|
||||
| arrays.js:25:15:25:22 | "source" | arrays.js:26:8:26:17 | arr3.pop() |
|
||||
|
||||
@@ -65,4 +65,9 @@
|
||||
for (const x of arr7) {
|
||||
sink(x); // NOT OK
|
||||
}
|
||||
|
||||
const arrayFrom = require("array-from");
|
||||
for (const x of arrayFrom(arr)) {
|
||||
sink(x); // NOT OK
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user