JS: Add failing test

This commit is contained in:
Asger F
2025-03-14 11:44:10 +01:00
parent f0af5af015
commit cc95c77cbc
2 changed files with 9 additions and 0 deletions

View File

@@ -278,3 +278,11 @@ function dangerConstant() {
sink("danger-constant".safe); // OK
sink("danger-constant"); // OK
}
function arraySource() {
const source = testlib.getSourceArray();
sink(source[0]); // NOT OK [INCONSISTENCY]
sink(source.pop()); // NOT OK [INCONSISTENCY]
source.forEach(e => sink(e)); // NOT OK [INCONSISTENCY]
source.map(e => sink(e)); // NOT OK [INCONSISTENCY]
}