swc/crates/swc_ecma_parser/tests/errors/issue-2834/input.js.swc-stderr

23 lines
503 B
Plaintext
Raw Normal View History

x Unexpected token `(`. Expected yield, an identifier, [ or {
,-[$DIR/tests/errors/issue-2834/input.js:2:1]
2 | ({ a: (b) }) => {};
3 | for (const [(a)] of arr) {}
: ^
`----
x Not a pattern
,-[$DIR/tests/errors/issue-2834/input.js:1:1]
1 | ([(a)]) => {};
: ^^^
2 | ({ a: (b) }) => {};
`----
x Not a pattern
,-[$DIR/tests/errors/issue-2834/input.js:1:1]
1 | ([(a)]) => {};
2 | ({ a: (b) }) => {};
: ^^^
3 | for (const [(a)] of arr) {}
`----