mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +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
13 lines
497 B
Plaintext
13 lines
497 B
Plaintext
error: Destructuring bindings require initializers
|
|
--> $DIR/tests/test262-parser/fail/37cb7557997d4fd6.js:1:24
|
|
|
|
|
1 | "use strict"; for (let [a = let];;) {}
|
|
| ^^^^^^^^^
|
|
|
|
error: 'implements', 'interface', 'let', 'package', 'private', 'protected', 'public', 'static', or 'yield' cannot be used as an identifier in strict mode
|
|
--> $DIR/tests/test262-parser/fail/37cb7557997d4fd6.js:1:29
|
|
|
|
|
1 | "use strict"; for (let [a = let];;) {}
|
|
| ^^^
|
|
|