oxc/tasks/transform_conformance/snapshots
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
..
babel.snap.md feat(transformer): add defaulted Module::Preserve option (#7225) 2024-11-09 12:55:13 +00:00
babel_exec.snap.md chore(deps): update dependency @types/node to v22.9.0 (#7145) 2024-11-06 06:17:36 +00:00
oxc.snap.md fix(transformer/async-to-generator): arguments isn't correct after transformation (#7234) 2024-11-17 05:01:44 +00:00
oxc_exec.snap.md chore(coverage): bump test262, babel and TypeScript (#6702) 2024-10-20 15:02:26 +00:00