mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +03:00
b8fe04f720
**Description:** This PR makes the error reporter print contexts. **Related issue:** - https://github.com/swc-project/swc/issues/6525.
30 lines
595 B
Plaintext
30 lines
595 B
Plaintext
|
|
x Expected ';', '}' or <eof>
|
|
,-[$DIR/tests/test262-parser/fail/0ffb1c3ecf85660e.js:1:1]
|
|
1 | "Hello
|
|
2 | World"
|
|
: ^
|
|
`----
|
|
|
|
Error:
|
|
> This is the expression part of an expression statement
|
|
,-[$DIR/tests/test262-parser/fail/0ffb1c3ecf85660e.js:1:1]
|
|
1 | "Hello
|
|
2 | World"
|
|
: ^^^^^
|
|
`----
|
|
|
|
x Unterminated string constant
|
|
,-[$DIR/tests/test262-parser/fail/0ffb1c3ecf85660e.js:1:1]
|
|
1 | "Hello
|
|
: ^^^^^^
|
|
2 | World"
|
|
`----
|
|
|
|
x Unterminated string constant
|
|
,-[$DIR/tests/test262-parser/fail/0ffb1c3ecf85660e.js:1:1]
|
|
1 | "Hello
|
|
2 | World"
|
|
: ^
|
|
`----
|