mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
close: #3620 In `Babel`, the expected output is: ```ts var x = 10; var Foo = function(Foo) { Foo[Foo['a'] = 10] = 'a'; Foo[Foo['b'] = 10] = 'b'; Foo[Foo['c'] = 30] = 'c'; return Foo; }(Foo || {}); ``` IMO, `Foo.b + x` is enough, because `x` is not a const variable. The output same as with `typescript` |
||
|---|---|---|
| .. | ||
| babel-plugin-transform-optional-catch-binding/test/fixtures | ||
| babel-plugin-transform-react-jsx/test/fixtures | ||
| babel-plugin-transform-typescript/test/fixtures | ||