mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
JS: add defuse+dataflow tests for destructuring and default values
This commit is contained in:
@@ -30,3 +30,6 @@
|
||||
| tst.js:7:4:7:6 | --i | tst.js:7:6:7:6 | i |
|
||||
| tst.js:12:2:12:7 | x = 42 | tst.js:14:9:14:9 | x |
|
||||
| tst.js:19:11:19:11 | x | tst.js:18:9:18:9 | x |
|
||||
| tst.js:23:6:23:23 | {a = b, c = d} = e | tst.js:24:2:24:2 | a |
|
||||
| tst.js:23:6:23:23 | {a = b, c = d} = e | tst.js:24:6:24:6 | c |
|
||||
| tst.js:26:11:26:11 | a | tst.js:27:2:27:2 | a |
|
||||
|
||||
@@ -29,3 +29,4 @@
|
||||
| tst.js:11:11:11:11 | g | tst.js:11:2:15:1 | functio ... rn x;\\n} |
|
||||
| tst.js:12:2:12:7 | x = 42 | tst.js:12:6:12:7 | 42 |
|
||||
| tst.js:19:11:19:11 | x | tst.js:19:2:19:16 | function x() {} |
|
||||
| tst.js:23:6:23:23 | {a = b, c = d} = e | tst.js:23:23:23:23 | e |
|
||||
|
||||
@@ -18,3 +18,11 @@ function f(o) {
|
||||
return x;
|
||||
function x() {}
|
||||
});
|
||||
|
||||
(function(){
|
||||
var {a = b, c = d} = e;
|
||||
a + c;
|
||||
});
|
||||
(function(a = b) {
|
||||
a;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user