Skip to content

Commit c256b9c

Browse files
committed
Added underscore.string test cases for str to array.
1 parent 9bca863 commit c256b9c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

javascript/ql/test/library-tests/TripleDot/underscore.string.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,10 @@ function strToStr() {
3333
sink(s.unquote(source("s30"), "quote")); // $ hasTaintFlow=s30
3434
sink(s.map(source("s31"), (x) => {return x;})); // $ hasTaintFlow=s31
3535
}
36+
37+
function strToArray() {
38+
sink(s.chop(source("s1"), 3)[0]); // $ MISSING: hasTaintFlow=s1
39+
sink(s.chars(source("s2")[0])); // $ MISSING: hasTaintFlow=s2
40+
sink(s.words(source("s3")[0])); // $ MISSING: hasTaintFlow=s3
41+
sink(s.lines(source("s7")[0])); // $ MISSING: hasTaintFlow=s7
42+
}

0 commit comments

Comments
 (0)