mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 22:56:11 +03:00
552fc2374d
swc_ecma_parser: - Improve error message for unexpected tokens.
19 lines
446 B
Plaintext
19 lines
446 B
Plaintext
error: Expected ';', '}' or <eof>
|
|
--> $DIR/tests/test262-parser/fail/58707e130fe451a8.js:1:13
|
|
|
|
|
1 | void { [1, 2]: 3 };
|
|
| ^
|
|
|
|
|
note: This is the expression part of an expression statement
|
|
--> $DIR/tests/test262-parser/fail/58707e130fe451a8.js:1:1
|
|
|
|
|
1 | void { [1, 2]: 3 };
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: Expected ']', got ','
|
|
--> $DIR/tests/test262-parser/fail/58707e130fe451a8.js:1:10
|
|
|
|
|
1 | void { [1, 2]: 3 };
|
|
| ^
|
|
|