oxc/tasks/coverage/parser_misc.snap
Boshen 2f5afff9bd
fix(parser): fix crash on TSTemplateLiteralType in function return position (#2089)
```
interface Helpers {
  inspect(): `~~~~\n${string}\n~~~~`;
}
```
2024-01-19 23:14:05 +08:00

45 lines
1,021 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

parser_misc Summary:
AST Parsed : 10/10 (100.00%)
Positive Passed: 10/10 (100.00%)
Negative Passed: 5/5 (100.00%)
× Unexpected token
╭─[fail/oxc-169.js:1:1]
1 │ 1<(V=82<<t-j0<(V=$<LBI<(V=ut<I<(V=$<LBI<(V=uIV=82<<t-j0<(V=$<LBI<(V=ut<I<(V=$<LBI<(V<II>
╰────
× Unexpected token
╭─[fail/oxc-1942-1.ts:1:1]
1 │ class Foo {
2 │ get x: () => {
· ─
3 │ return 5;
╰────
× Unexpected token
╭─[fail/oxc-1942-2.ts:1:1]
1 │ class Foo {
2 │ set x: (v: number) => {}
· ─
3 │ }
╰────
× Empty parenthesized expression
╭─[fail/oxc-232.js:1:1]
1 │ x = (/* a */)
· ─────────
╰────
× The keyword 'let' is reserved
╭─[fail/oxc.js:1:1]
1 │ let.a = 1;
· ───
2 │ let()[a] = 1;
╰────
× The keyword 'let' is reserved
╭─[fail/oxc.js:1:1]
1 │ let.a = 1;
2 │ let()[a] = 1;
· ───
╰────