fix unused crashes (#1599)
- `AST_DefaultAssign` on `keep_fargs` - `AST_Expansion on` `keep_fargs` - `AST_Destructuring` on top-level declarations without `toplevel`
This commit is contained in:
@@ -293,3 +293,17 @@ reduce_vars: {
|
||||
for ([x,y] in pairs);
|
||||
}
|
||||
}
|
||||
|
||||
unused: {
|
||||
options = {
|
||||
unused: true,
|
||||
}
|
||||
input: {
|
||||
let { foo: [, , ...a] } = { foo: [1, 2, 3, 4], bar: 5 };
|
||||
console.log(a);
|
||||
}
|
||||
expect: {
|
||||
let { foo: [, , ...a] } = { foo: [1, 2, 3, 4], bar: 5 };
|
||||
console.log(a);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user