oxc/crates
Dunqing ede10dc030 fix(transformer/async-to-generator): incorrect transform when super expression is inside async method (#7171)
After transformation, super expressions have moved to unexpected places. This PR replaces super expression to call expression, and then inserts the super methods to the top of the method body.

For example:

Before:
```js
class G {
  async method() {
    super.foo()
  }
}
```

After:
```js
class G {
  method() {
    var _superprop_getFoo = () => super.foo,
      _this = this;
    return _asyncToGenerator(function* () {
      _superprop_getFoo().call(_this);
    })();
  }
}```
2024-11-08 08:18:45 +00:00
..
oxc release(crates): v0.35.0 (#7110) 2024-11-04 17:40:05 +08:00
oxc_allocator release(crates): v0.35.0 (#7110) 2024-11-04 17:40:05 +08:00
oxc_ast feat(estree): ESTree compatibility for all literals (#7152) 2024-11-06 21:25:41 +00:00
oxc_ast_macros release(crates): v0.35.0 (#7110) 2024-11-04 17:40:05 +08:00
oxc_cfg release(crates): v0.35.0 (#7110) 2024-11-04 17:40:05 +08:00
oxc_codegen feat(ast)!: change comment.span to real position that contain // and /* (#7154) 2024-11-06 05:10:33 +00:00
oxc_data_structures release(crates): v0.35.0 (#7110) 2024-11-04 17:40:05 +08:00
oxc_diagnostics feat(transformer): warn BigInt when targeting < ES2020 (#7184) 2024-11-07 08:29:03 +00:00
oxc_ecmascript release(crates): v0.35.0 (#7110) 2024-11-04 17:40:05 +08:00
oxc_estree feat(ast_tools): Add #[estree(append_to)], remove some custom serialization code (#7149) 2024-11-06 21:09:45 +00:00
oxc_index release(crates): v0.35.0 (#7110) 2024-11-04 17:40:05 +08:00
oxc_isolated_declarations feat(ast)!: change comment.span to real position that contain // and /* (#7154) 2024-11-06 05:10:33 +00:00
oxc_language_server feat(linter): do not bail for unmatched rules yet (#7093) 2024-11-03 11:18:36 +08:00
oxc_linter feat(linter): add import/unambiguous rule (#7187) 2024-11-08 08:54:37 +08:00
oxc_macros feat(linter): support user-configurable secrets for oxc-security/api-keys (#5938) 2024-10-28 18:55:19 +00:00
oxc_mangler release(crates): v0.35.0 (#7110) 2024-11-04 17:40:05 +08:00
oxc_minifier release(crates): v0.35.0 (#7110) 2024-11-04 17:40:05 +08:00
oxc_module_lexer release(crates): v0.35.0 (#7110) 2024-11-04 17:40:05 +08:00
oxc_parser feat(estree): ESTree compatibility for all literals (#7152) 2024-11-06 21:25:41 +00:00
oxc_prettier feat(ast)!: change comment.span to real position that contain // and /* (#7154) 2024-11-06 05:10:33 +00:00
oxc_regular_expression feat(ast_tools): Add #[estree(append_to)], remove some custom serialization code (#7149) 2024-11-06 21:09:45 +00:00
oxc_semantic feat(ast)!: change comment.span to real position that contain // and /* (#7154) 2024-11-06 05:10:33 +00:00
oxc_sourcemap release(crates): v0.35.0 (#7110) 2024-11-04 17:40:05 +08:00
oxc_span feat(ast_tools): Add #[estree(append_to)], remove some custom serialization code (#7149) 2024-11-06 21:09:45 +00:00
oxc_syntax feat(ast_tools): Add #[estree(append_to)], remove some custom serialization code (#7149) 2024-11-06 21:09:45 +00:00
oxc_transformer fix(transformer/async-to-generator): incorrect transform when super expression is inside async method (#7171) 2024-11-08 08:18:45 +00:00
oxc_traverse refactor(traverse): use symbol_id etc methods (#7129) 2024-11-05 02:25:28 +00:00
oxc_wasm feat(ast)!: change comment.span to real position that contain // and /* (#7154) 2024-11-06 05:10:33 +00:00