oxc/crates
Dunqing 7d75130865 fix(transformer/async-to-generator): arguments isn't correct after transformation (#7234)
Fix due to this plugin transforming the async method and async arrow function, it caused arguments no longer point the original function.

For example:

Before

```js
class Cls {
  async method() {
    () => {
    	console.log(arguments)
    }
  }
}
```

After:

```js
class Cls {
  method() {
    var _arguments = arguments;
    return babelHelpers.asyncToGenerator(function* () {
      () => {
        console.log(_arguments);
      };
    })();
  }
}
```

In this way, the `_arguments` is its original function's arguments

### For performance regression

It seems we need to check the IdentifierReference and BindingIdentifier if it's an `arguments`, that causes a significant regression, we may need a cheap way to do checking
2024-11-17 05:01:44 +00:00
..
oxc chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_allocator chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_ast chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_ast_macros release(crates): v0.36.0 (#7227) 2024-11-10 00:31:14 +08:00
oxc_cfg release(crates): v0.36.0 (#7227) 2024-11-10 00:31:14 +08:00
oxc_codegen chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_data_structures feat(data_structures): add methods to SparseStack (#7305) 2024-11-16 05:36:36 +00:00
oxc_diagnostics chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_ecmascript release(crates): v0.36.0 (#7227) 2024-11-10 00:31:14 +08:00
oxc_estree release(crates): v0.36.0 (#7227) 2024-11-10 00:31:14 +08:00
oxc_index release(crates): v0.36.0 (#7227) 2024-11-10 00:31:14 +08:00
oxc_isolated_declarations chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_language_server fix(language_server): revalidate files when oxlint config is changing (#7259) 2024-11-14 10:45:17 +08:00
oxc_linter feat(linter): implement unicorn/consistent-existence-index-check (#7262) 2024-11-16 20:07:52 +00: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 chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_minifier chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_module_lexer chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_parser chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_prettier chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_regular_expression release(crates): v0.36.0 (#7227) 2024-11-10 00:31:14 +08:00
oxc_semantic fix(transformer/async-to-generator): arguments isn't correct after transformation (#7234) 2024-11-17 05:01:44 +00:00
oxc_sourcemap chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_span release(crates): v0.36.0 (#7227) 2024-11-10 00:31:14 +08:00
oxc_syntax release(crates): v0.36.0 (#7227) 2024-11-10 00:31:14 +08:00
oxc_transformer fix(transformer/async-to-generator): arguments isn't correct after transformation (#7234) 2024-11-17 05:01:44 +00:00
oxc_traverse feat(traverse): add methods for creating Expression::Identifiers (#7301) 2024-11-16 05:36:35 +00:00
oxc_wasm feat(transformer)!: change API to take a &TransformOptions instead of TransformOptions (#7213) 2024-11-09 06:01:13 +00:00