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.
13 lines
330 B
Plaintext
13 lines
330 B
Plaintext
error: Expected ',', got '=>'
|
|
--> $DIR/tests/test262-parser/fail/ca3dd7ea0b4626dd.js:1:23
|
|
|
|
|
1 | console.log(typeof () => {});
|
|
| ^^
|
|
|
|
error: An arrow function is not allowed here
|
|
--> $DIR/tests/test262-parser/fail/ca3dd7ea0b4626dd.js:1:20
|
|
|
|
|
1 | console.log(typeof () => {});
|
|
| ^^
|
|
|