mirror of
https://github.com/danbulant/oxc
synced 2026-05-21 05:08:45 +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`
118 B
118 B
commit: 12619ffe
Passed: 4/4
All Passed:
- babel-plugin-transform-typescript
- babel-plugin-transform-react-jsx