mirror of
https://github.com/hanzoai/swc.git
synced 2026-10-30 19:42:53 +00:00
65 lines
1.7 KiB
Plaintext
65 lines
1.7 KiB
Plaintext
x A rest parameter cannot have an initializer
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:1:1]
|
|
1 | [...a=1]=[];
|
|
: ^^^^^^
|
|
2 | [a,...b=1]=[];
|
|
`----
|
|
x A rest parameter cannot have an initializer
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:2:1]
|
|
1 | [...a=1]=[];
|
|
2 | [a,...b=1]=[];
|
|
: ^^^^^^
|
|
`----
|
|
x A rest parameter cannot have an initializer
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:4:1]
|
|
3 |
|
|
4 | ([...a=1])=>{};
|
|
: ^^^^^^
|
|
5 | ([a,...b=1])=>{};
|
|
`----
|
|
x A rest parameter cannot have an initializer
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:5:1]
|
|
4 | ([...a=1])=>{};
|
|
5 | ([a,...b=1])=>{};
|
|
: ^^^^^^
|
|
`----
|
|
x A rest parameter cannot have an initializer
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:7:1]
|
|
6 |
|
|
7 | ({...a=1}={});
|
|
: ^^^^^^
|
|
8 | ({a,...b=1}={});
|
|
`----
|
|
x A rest parameter cannot have an initializer
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:8:1]
|
|
7 | ({...a=1}={});
|
|
8 | ({a,...b=1}={});
|
|
: ^^^^^^
|
|
`----
|
|
x `...` must be followed by an identifier in declaration contexts
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:10:1]
|
|
9 |
|
|
10 | ({...a=1})=>{};
|
|
: ^^^^^^
|
|
11 | ({a,...b=1})=>{};
|
|
`----
|
|
x `...` must be followed by an identifier in declaration contexts
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:11:1]
|
|
10 | ({...a=1})=>{};
|
|
11 | ({a,...b=1})=>{};
|
|
: ^^^^^^
|
|
`----
|
|
x A rest parameter cannot have an initializer
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:13:1]
|
|
12 |
|
|
13 | (...a=1)=>{};
|
|
: ^^^^^^
|
|
14 | (a,...b=1)=>{};
|
|
`----
|
|
x A rest parameter cannot have an initializer
|
|
,-[$DIR/tests/errors/rest-initializer/input.js:14:1]
|
|
13 | (...a=1)=>{};
|
|
14 | (a,...b=1)=>{};
|
|
: ^^^^^^
|
|
`----
|