Skip to content

Commit ad52d64

Browse files
committed
add test case for tuple-like use
1 parent 981eef2 commit ad52d64

File tree

1 file changed

+3
-1
lines changed
  • javascript/ql/test/library-tests/Arrays

1 file changed

+3
-1
lines changed

javascript/ql/test/library-tests/Arrays/arrays.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,7 @@
4444
["source"].forEach((e, i, ary) => {
4545
sink(ary.pop()); // NOT OK
4646
sink(ary); // OK - its the array itself, not an element.
47-
})
47+
});
48+
49+
sink(arr[0]); // OK - tuple like usage.
4850
});

0 commit comments

Comments
 (0)