From d3bbc620cc318e522989e42a60e8114fe2d5932d Mon Sep 17 00:00:00 2001 From: Dunqing Date: Fri, 16 Aug 2024 22:11:43 +0800 Subject: [PATCH] fix(isolated-declarations): declare modifier of PropertyDefinition should not be retained (#4941) related: #4937 There are no tests/snapshots updates and seems we don't have a way to test it until #4937 is merged. But I tested it locally and it worked! --- crates/oxc_isolated_declarations/src/class.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_isolated_declarations/src/class.rs b/crates/oxc_isolated_declarations/src/class.rs index ba52d2823b68f..319477913d21c 100644 --- a/crates/oxc_isolated_declarations/src/class.rs +++ b/crates/oxc_isolated_declarations/src/class.rs @@ -98,7 +98,7 @@ impl<'a> IsolatedDeclarations<'a> { value, property.computed, property.r#static, - property.declare, + false, property.r#override, property.optional, property.definite,