mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +03:00
a1d33d023a
swc_ecma_parser: - Improve parser's error reporting story - Replace `Session`, `Handler`, `Emitter` with Parser.take_errors() - Expose `Error` - Remove useless lifetime parameters
19 lines
467 B
Plaintext
19 lines
467 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: TS1109
|
|
--> $DIR/tests/test262-parser/fail/a7be138dfd29025e.js:2:7
|
|
|
|
|
2 | { *[yield iter]() {} }
|
|
| ^
|
|
|