refactor(transformer/exponentiation-operator): correct comment (#7476)

Follow-on after #7410. Update comment to reflect the changed logic.
This commit is contained in:
overlookmotel 2024-11-25 14:16:22 +00:00
parent 10ea830651
commit 3396b69379

View file

@ -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() {