mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 13:11:31 +03:00
993b77b325
swc_ecma_parser: - Improve error messages
7 lines
357 B
Plaintext
7 lines
357 B
Plaintext
error: Unexpected token `const`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` for template literal, (, or an identifier
|
|
--> $DIR/tests/test262-parser/fail/dc4aa6a1fb2c6317.js:1:10
|
|
|
|
|
1 | for (;;) const x = 10;
|
|
| ^^^^^
|
|
|