mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
993b77b325
swc_ecma_parser: - Improve error messages
19 lines
480 B
Plaintext
19 lines
480 B
Plaintext
error: Expected ';', '}' or <eof>
|
|
--> $DIR/tests/test262-parser/fail/a7be138dfd29025e.js:2:23
|
|
|
|
|
2 | { *[yield iter]() {} }
|
|
| ^
|
|
|
|
|
note: This is the expression part of an expression statement
|
|
--> $DIR/tests/test262-parser/fail/a7be138dfd29025e.js:2:7
|
|
|
|
|
2 | { *[yield iter]() {} }
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: Expression expected
|
|
--> $DIR/tests/test262-parser/fail/a7be138dfd29025e.js:2:7
|
|
|
|
|
2 | { *[yield iter]() {} }
|
|
| ^
|
|
|