mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
refactor(transformer/private-methods): TODO comments (#8363)
This commit is contained in:
parent
ac72adbade
commit
c786fd1add
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue