mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
JS: ensure parameters always have a dataflow node
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
| sources.js:1:6:1:6 | x |
|
||||
| sources.js:3:11:3:11 | x |
|
||||
| tst.js:16:13:16:13 | a |
|
||||
| tst.js:32:12:32:12 | b |
|
||||
| tst.js:87:11:87:24 | { p: x, ...o } |
|
||||
| tst.js:98:11:98:24 | [ x, ...rest ] |
|
||||
| tst.ts:13:39:13:38 | args |
|
||||
4
javascript/ql/test/library-tests/DataFlow/parameters.ql
Normal file
4
javascript/ql/test/library-tests/DataFlow/parameters.ql
Normal file
@@ -0,0 +1,4 @@
|
||||
import javascript
|
||||
|
||||
from DataFlow::ParameterNode param
|
||||
select param
|
||||
@@ -25,6 +25,7 @@
|
||||
| tst.js:28:2:29:3 | () =>\\n x |
|
||||
| tst.js:32:1:32:0 | this |
|
||||
| tst.js:32:1:34:1 | functio ... ables\\n} |
|
||||
| tst.js:32:12:32:12 | b |
|
||||
| tst.js:35:1:35:7 | g(true) |
|
||||
| tst.js:37:9:42:1 | {\\n x: ... ;\\n }\\n} |
|
||||
| tst.js:39:4:39:3 | this |
|
||||
|
||||
Reference in New Issue
Block a user