swc/ecmascript/parser/tests/test262-error-references/fail/d17d3aebb6a3cf43.js.stderr
강동윤 a1d33d023a
Improve ux using swc as a rust library (#893)
swc_ecma_parser:
 - Improve parser's error reporting story
 - Replace `Session`, `Handler`, `Emitter` with Parser.take_errors()
 - Expose `Error`
 - Remove useless lifetime parameters
2020-07-25 20:26:04 +09:00

13 lines
509 B
Plaintext

error: Destructuring bindings require initializers
--> $DIR/tests/test262-parser/fail/d17d3aebb6a3cf43.js:1:24
|
1 | "use strict"; for (let {a: b = 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/d17d3aebb6a3cf43.js:1:32
|
1 | "use strict"; for (let {a: b = let};;) {}
| ^^^