We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This code should parse with no errors
declare module "foo" { let {a: x, b: x1}: {a: number, b: number}; // valid b/c ambient context } declare namespace Bar { let {a: x, b: x1}: {a: number, b: number}; // valid b/c ambient context }
But it errors with
Error: Missing initializer in destructuring declaration
It looks like Context::Ambient is not getting updated correctly, even though it should be in parse_ts_declaration_statement
Context::Ambient
parse_ts_declaration_statement
oxc/crates/oxc_parser/src/ts/statement.rs
Line 344 in 05f592b
The text was updated successfully, but these errors were encountered:
fix(paresr): do not report missing initializer error in ambient context
6499aec
closes #5958
fix(paresr): do not report missing initializer error in ambient conte…
0658576
…xt (#6020) closes #5958
Boshen
Successfully merging a pull request may close this issue.
This code should parse with no errors
But it errors with
It looks like
Context::Ambient
is not getting updated correctly, even though it should be inparse_ts_declaration_statement
oxc/crates/oxc_parser/src/ts/statement.rs
Line 344 in 05f592b
The text was updated successfully, but these errors were encountered: