File tree Expand file tree Collapse file tree
javascript/ql/test/library-tests/TripleDot Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,3 +112,29 @@ function t10() {
112112 }
113113 target ( source ( 't10.1' ) , source ( 't10.2' ) , source ( 't10.3' ) ) ;
114114}
115+
116+ function t11 ( ) {
117+ function target ( x , y ) {
118+ sink ( x ) ; // $ MISSING: hasTaintFlow=t11.1
119+ sink ( y ) ; // $ MISSING: hasTaintFlow=t11.1
120+ }
121+ target ( ...source ( 't11.1' ) ) ;
122+ }
123+
124+ function t12 ( ) {
125+ function target ( x , y ) {
126+ sink ( x ) ;
127+ sink ( y ) ; // $ MISSING: hasTaintFlow=t12.1
128+ }
129+ target ( "safe" , ...source ( 't12.1' ) ) ;
130+ }
131+
132+ function t13 ( ) {
133+ function target ( x , y , ...rest ) {
134+ sink ( x ) ;
135+ sink ( y ) ; // $ MISSING: hasTaintFlow=t13.1
136+ sink ( rest ) ; // $ MISSING: hasTaintFlow=t13.1
137+ sink ( rest [ 0 ] ) ; // $ MISSING: hasTaintFlow=t13.1
138+ }
139+ target ( "safe" , ...source ( 't13.1' ) ) ;
140+ }
You can’t perform that action at this time.
0 commit comments