mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +03:00
993b77b325
swc_ecma_parser: - Improve error messages
13 lines
318 B
Plaintext
13 lines
318 B
Plaintext
error: Expected {, got None
|
|
--> $DIR/tests/test262-parser/fail/2d1410e37ecc3647.js:1:23
|
|
|
|
|
1 | function f(a, ...b = 0)
|
|
| ^
|
|
|
|
error: A rest parameter cannot have an initializer
|
|
--> $DIR/tests/test262-parser/fail/2d1410e37ecc3647.js:1:18
|
|
|
|
|
1 | function f(a, ...b = 0)
|
|
| ^
|
|
|