mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
refactor(transformer/exponentiation-operator): correct comment (#7476)
Follow-on after #7410. Update comment to reflect the changed logic.
This commit is contained in:
parent
10ea830651
commit
3396b69379
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ impl<'a, 'ctx> ExponentiationOperator<'a, 'ctx> {
|
|||
let reference = ctx.scoping.symbols_mut().get_reference_mut(ident.reference_id());
|
||||
|
||||
// `left **= right` is being transformed to `left = Math.pow(left, right)`,
|
||||
// so if `left` is no longer being read from, update its `ReferenceFlags`.
|
||||
// so `left` in `left =` is no longer being read from
|
||||
*reference.flags_mut() = ReferenceFlags::Write;
|
||||
|
||||
let pow_left = if let Some(symbol_id) = reference.symbol_id() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue