mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 13:11:31 +03:00
552fc2374d
swc_ecma_parser: - Improve error message for unexpected tokens.
13 lines
325 B
Plaintext
13 lines
325 B
Plaintext
error: Expected '{', got '<eof>'
|
|
--> $DIR/tests/test262-parser/fail/f0ff9ff5dab859aa.js:1:22
|
|
|
|
|
1 | function f(a, ...b, c)
|
|
| ^
|
|
|
|
error: A rest parameter must be last in a parameter list
|
|
--> $DIR/tests/test262-parser/fail/f0ff9ff5dab859aa.js:1:15
|
|
|
|
|
1 | function f(a, ...b, c)
|
|
| ^^^
|
|
|