Update dependency oxc-parser to v0.150.0 (#20059)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
renovate[bot]andfisker authored and GitHub committed 2026-09-14 22:43:49 +08:00
1 parent 0651c601b8
commit 884c2d6a7d
6 files changed
+105 -105

No files matched your search

@@ -596,19 +596,19 @@ Cause: [3:0-3:1]: Classes may not have a field called constructor"
`;
exports[`snippet: #5 format[oxc] 1`] = `
"Expected \`(\` but found \`}\` (3:1)
"'accessor' modifier can only appear on a property declaration. (2:3)
1 | class Foo {
2 | accessor constructor
> 3 | }
| ^"
> 2 | accessor constructor
| ^^^^^^^^
3 | }"
`;
exports[`snippet: #5 format[oxc-ts] 1`] = `
"Expected \`(\` but found \`}\` (3:1)
"'accessor' modifier can only appear on a property declaration. (2:3)
1 | class Foo {
2 | accessor constructor
> 3 | }
| ^"
> 2 | accessor constructor
| ^^^^^^^^
3 | }"
`;
exports[`snippet: #5 format[typescript] 1`] = `
@@ -174,15 +174,15 @@ Cause: [1:12-1:20]: 'for-in' loop head declarations can not have an initializer"
`;
exports[`snippet: #2 format[oxc] 1`] = `
"Expected \`;\` but found \`)\` (1:23)
"The left-hand side of a for...in statement cannot be an using declaration. (1:7)
> 1 | {for (using a = 1 in b);}
| ^"
| ^^^^^^^^^^^"
`;
exports[`snippet: #2 format[oxc-ts] 1`] = `
"Expected \`;\` but found \`)\` (1:23)
"The left-hand side of a for...in statement cannot be an using declaration. (1:7)
> 1 | {for (using a = 1 in b);}
| ^"
| ^^^^^^^^^^^"
`;
exports[`snippet: #2 format[typescript] 1`] = `
@@ -759,7 +759,7 @@ Cause: [2:18-2:22]: Expected ';'"
`;
exports[`discard-binding-for-await-using-binding.js format[oxc] 1`] = `
"Identifier expected. 'void' is a reserved word that cannot be used here. (2:19)
"Expected \`;\` but found \`void\` (2:19)
1 | async () => {
> 2 | for(await using void of []);
| ^^^^
@@ -768,7 +768,7 @@ exports[`discard-binding-for-await-using-binding.js format[oxc] 1`] = `
`;
exports[`discard-binding-for-await-using-binding.js format[oxc-ts] 1`] = `
"Identifier expected. 'void' is a reserved word that cannot be used here. (2:19)
"Expected \`;\` but found \`void\` (2:19)
1 | async () => {
> 2 | for(await using void of []);
| ^^^^
@@ -180,11 +180,11 @@ Cause: Classes may not have a field named 'constructor'. (2:11)"
`;
exports[`snippet: #5 format[oxc-ts] 1`] = `
"Expected \`(\` but found \`}\` (3:1)
"'accessor' modifier can only appear on a property declaration. (2:3)
1 | abstract class Foo {
2 | accessor constructor
> 3 | }
| ^"
> 2 | accessor constructor
| ^^^^^^^^
3 | }"
`;
exports[`snippet: #5 format[typescript] 1`] = `