swc/crates/swc_ecma_parser/tests/errors/rest-trailing-comma/input.js
2022-04-07 03:43:10 +00:00

17 lines
320 B
JavaScript

[...a,]=[...spread,];
const [...a,] = [...spread,];
([...a,],)=>{};
({...a,},)=>{};
(...a,)=>{};
class c {
constructor(...a,){}
fn(...a,) {}
}
function fn([...a,],) {};
function fn({...a,},) {};
function fn(...a,) {};
({...a,}={...spread,});
const {...a,} = {...spread,};
for ([...a,] of a) {}
for ({...a,} of b) {}