oxc/tasks/transform_conformance/tests
overlookmotel 99635330c7 fix(transformer/arrow-functions): visit arguments to super() call (#8494)
Follow-on after #8482.

Fix an edge case in arrow functions transform when inserting `_this = this` after `super()`. It is possible (though bizarre) for `super()` to contain another `super()` call. This will throw an error when evaluating the outer `super()`, but it can still be observable in some cases.

```js
let f;
class S {}
class C extends S {
  constructor(x) {
    super(super(), this.x = x, f = async () => this);
  }
}

try { new C(123) } catch {}

const c = await f();
assert(c.x === 123);
```

So, before bailing out from searching for more `super()`s in class constructor, visit the `super()` call's arguments.
2025-01-15 02:07:05 +00:00
..
babel-plugin-transform-arrow-functions/test/fixtures fix(transformer): fix arrow function transform (#5933) 2024-09-21 07:48:18 +00:00
babel-plugin-transform-async-generator-functions/test/fixtures fix(transformer/async-generator-functions): incorrect transformation for for await if it's not placed in a block (#7148) 2024-11-06 05:51:01 +00:00
babel-plugin-transform-async-to-generator/test/fixtures fix(transformer/arrow-functions): visit arguments to super() call (#8494) 2025-01-15 02:07:05 +00:00
babel-plugin-transform-class-properties/test/fixtures fix(transformer/class-properties): correctly resolve private fields pointing to private methods (#8042) 2024-12-23 03:44:08 +00:00
babel-plugin-transform-class-static-block/test/fixtures feat(transformer): class static block transform (#6733) 2024-10-22 03:40:02 +00:00
babel-plugin-transform-exponentiation-operator/test/fixtures test(transformer): fix indentation in transformer test fixtures (#6346) 2024-10-08 01:32:07 +00:00
babel-plugin-transform-logical-assignment-operators/test/fixtures feat(transformer/logical-assignment-operators): no temp vars for literals (#7759) 2024-12-10 02:28:28 +00:00
babel-plugin-transform-nullish-coalescing-operator/test/fixtures test(transformer/nullish-coalescing): failing test (#8051) 2024-12-21 07:08:29 +00:00
babel-plugin-transform-object-rest-spread/test/fixtures/object-rest feat(transformer): transform object rest spread (#7003) 2024-11-21 11:33:26 +00:00
babel-plugin-transform-optional-catch-binding/test/fixtures
babel-plugin-transform-private-methods/test/fixtures fix(transformer/private-methods): no temp var for class when unused private methods (#8360) 2025-01-09 03:17:37 +00:00
babel-plugin-transform-react-jsx/test/fixtures fix(oxc_transformer): correct generate ThisExpr and import.meta in jsx pragma (#7553) 2024-12-03 13:54:15 +00:00
babel-plugin-transform-react-jsx-source/test/fixtures/react-source
babel-plugin-transform-typescript/test/fixtures fix(transformer/typescript): retain TSImportEqualsDeclaration when it is exported 2025-01-14 19:12:23 +08:00
babel-preset-typescript/test/fixtures/removeImportExtensions
regexp/test/fixtures test(transformer): fix indentation in transformer test fixtures (#6346) 2024-10-08 01:32:07 +00:00