oxc/crates/oxc_semantic
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
..
examples chore(semantic): rename examples/simple.rs to examples/semantic.rs 2024-11-12 11:55:58 +08:00
src fix(transformer/async-to-generator): arguments isn't correct after transformation (#7234) 2024-11-17 05:01:44 +00:00
tests test(semantic): semantic checker store conformance pass/fail info in a separate file (#7235) 2024-11-11 08:13:13 +00:00
Cargo.toml release(crates): v0.36.0 (#7227) 2024-11-10 00:31:14 +08:00
CHANGELOG.md release(crates): v0.36.0 (#7227) 2024-11-10 00:31:14 +08:00