mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
Use `TransformCtx::duplicate_expression` (introduced in #7754) to decide when to create temp vars for member expression object and computed property. This fixes a bug where `IdentifierReference`s created when transforming `key` in `object[key] &&= value` were created without a `ReferenceId` (due to `clone_in`). We didn't catch this before because Babel's test fixtures only cover `object[key++] &&= value` not the simpler `object[key] &&= value`. Add tests for this. |
||
|---|---|---|
| .. | ||
| babel-plugin-transform-object-rest-spread/test/fixtures | ||
| babel-plugin-transform-optional-chaining/test/fixtures | ||
| babel.snap.md | ||
| babel_exec.snap.md | ||
| oxc.snap.md | ||
| oxc_exec.snap.md | ||