Skip to content

Commit

Permalink
refactor(transformer/private-methods): TODO comments (#8363)
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Jan 9, 2025
1 parent ac72adb commit c786fd1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/oxc_transformer/src/es2022/class_properties/class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ impl<'a> ClassProperties<'a, '_> {
self.ctx.statement_injector.insert_many_before(
&stmt_address,
private_props.iter().filter_map(|(name, prop)| {
// TODO: Output `var _C_brand = new WeakSet();` for private instance method
if prop.is_method() || prop.is_accessor {
return None;
}
Expand Down Expand Up @@ -592,6 +593,7 @@ impl<'a> ClassProperties<'a, '_> {
// TODO(improve-on-babel): Simplify this.
if self.private_fields_as_properties {
exprs.extend(private_props.iter().filter_map(|(name, prop)| {
// TODO: Output `_C_brand = new WeakSet()` for private instance method
if prop.is_method() || prop.is_accessor {
return None;
}
Expand Down

0 comments on commit c786fd1

Please sign in to comment.