Skip to content

Commit

Permalink
refactor(transformer/class-properties): remove defunct comments (#7527)
Browse files Browse the repository at this point in the history
These comments are out of date / repeated elsewhere.
  • Loading branch information
overlookmotel committed Nov 28, 2024
1 parent 6655345 commit d5aaee7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crates/oxc_transformer/src/es2022/class_properties/private.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,6 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> {

// Get replacement for callee
let replacement = if prop.is_static {
// TODO: If `object` is reference to class name, and class is declaration, use shortcut `_prop._.call(Class)`.
// TODO(improve-on-babel): No reason not to apply these shortcuts for class expressions too.

// `object.#prop(arg)` -> `_assertClassBrand(Class, object, _prop)._.call(object, arg)`
// or shortcut `_prop._.call(object, arg)`
let class_name_binding = class_name_binding.as_ref().unwrap();
Expand Down

0 comments on commit d5aaee7

Please sign in to comment.