mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
Amend test added in #7991 to test transform of `super[prop] = value` where `prop` is not bound. We should ideally have the `_unbound` temp vars *inside* the arrow function rather than outside, as Babel does, but that's not possible with our double-visitor scheme at present, and I think current output will operate correctly anyway. Probably these temp vars could be hoisted even higher up - to very top level of the file, even if the class and `super[prop]` were deeply nested in many functions - and it'd still be correct. That'd be good for transformer performance as less `var` statements to insert, and also slightly smaller output size - less `var`s in code. But I don't know if that would be worse for runtime performance, as it makes the arrow function more impure. 🤔 |
||
|---|---|---|
| .. | ||
| babel-plugin-transform-arrow-functions/test/fixtures | ||
| babel-plugin-transform-async-generator-functions/test/fixtures | ||
| babel-plugin-transform-async-to-generator/test/fixtures | ||
| babel-plugin-transform-class-properties/test/fixtures | ||
| babel-plugin-transform-class-static-block/test/fixtures | ||
| babel-plugin-transform-exponentiation-operator/test/fixtures | ||
| babel-plugin-transform-logical-assignment-operators/test/fixtures | ||
| babel-plugin-transform-nullish-coalescing-operator/test/fixtures | ||
| babel-plugin-transform-object-rest-spread/test/fixtures/object-rest | ||
| babel-plugin-transform-optional-catch-binding/test/fixtures | ||
| babel-plugin-transform-react-jsx/test/fixtures | ||
| babel-plugin-transform-react-jsx-source/test/fixtures/react-source | ||
| babel-plugin-transform-typescript/test/fixtures | ||
| babel-preset-typescript/test/fixtures/removeImportExtensions | ||
| regexp/test/fixtures | ||