mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
JS: Add test for missing getALocalSource flow for rest pattern
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
function t1() {
|
||||
const { ...rest } = source('t1.1');
|
||||
rest; // $ MISSING: getALocalSource=rest
|
||||
}
|
||||
|
||||
function t2() {
|
||||
const [ ...rest ] = source('t2.1');
|
||||
rest; // $ MISSING: getALocalSource=rest
|
||||
}
|
||||
|
||||
function t3() {
|
||||
const { p1, ...rest } = source('t3.1');
|
||||
p1; // $ getALocalSource=p1
|
||||
rest; // $ MISSING: getALocalSource=rest
|
||||
}
|
||||
Reference in New Issue
Block a user