2022-03-20 14:56:22 +03:00
|
|
|
|
|
|
|
x Unexpected token `(`. Expected yield, an identifier, [ or {
|
2022-11-28 18:56:47 +03:00
|
|
|
,-[$DIR/tests/errors/issue-2834/input.js:2:1]
|
|
|
|
2 | ({ a: (b) }) => {};
|
2022-03-20 14:56:22 +03:00
|
|
|
3 | for (const [(a)] of arr) {}
|
|
|
|
: ^
|
|
|
|
`----
|
|
|
|
|
|
|
|
x Not a pattern
|
2022-04-07 06:43:10 +03:00
|
|
|
,-[$DIR/tests/errors/issue-2834/input.js:1:1]
|
2022-03-20 14:56:22 +03:00
|
|
|
1 | ([(a)]) => {};
|
|
|
|
: ^^^
|
2022-11-28 18:56:47 +03:00
|
|
|
2 | ({ a: (b) }) => {};
|
2022-03-20 14:56:22 +03:00
|
|
|
`----
|
|
|
|
|
|
|
|
x Not a pattern
|
2022-11-28 18:56:47 +03:00
|
|
|
,-[$DIR/tests/errors/issue-2834/input.js:1:1]
|
|
|
|
1 | ([(a)]) => {};
|
2022-03-20 14:56:22 +03:00
|
|
|
2 | ({ a: (b) }) => {};
|
|
|
|
: ^^^
|
2022-11-28 18:56:47 +03:00
|
|
|
3 | for (const [(a)] of arr) {}
|
2022-03-20 14:56:22 +03:00
|
|
|
`----
|