JS: Add test for missing getALocalSource flow for rest pattern

This commit is contained in:
Asger F
2025-04-11 08:26:04 +02:00
parent 14c5495b4c
commit 7703b1fab5
4 changed files with 48 additions and 0 deletions

View File

@@ -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
}