-
-
Notifications
You must be signed in to change notification settings - Fork 833
Closed
Labels
Description
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
oxc/crates/oxc_parser/src/ts/statement.rs
Line 344 in 05f592b
| self.ctx = self |
Reactions are currently unavailable