Skip to content

Commit cd40b6f

Browse files
committed
Added test cases underscore.string array to string.
1 parent 30623cd commit cd40b6f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,8 @@ function strToArray() {
4040
sink(s.words(source("s3")[0])); // $ hasTaintFlow=s3
4141
sink(s.lines(source("s7")[0])); // $ hasTaintFlow=s7
4242
}
43+
44+
function arrayToStr() {
45+
sink(s.toSentence([source("s1")])); // $ MISSING: hasTaintFlow=s1
46+
sink(s.toSentenceSerial([source("s2")])); // $ MISSING: hasTaintFlow=s2
47+
}

0 commit comments

Comments
 (0)