oxc/tasks
underfin 78b427bc50
feat(transform): support es2015 new target (#1967)
Here implementing the es2015 new target transform, see detail at
https://babel.dev/docs/babel-plugin-transform-template-new-target.

Here has three kinds need to be distinguished.

- `NewTargetKind::Method`, it from `AstKind::ObjectMethod` or
`AstKind::MethodDefinitionKind::Get/Set/Method`. It will be transformed
to `void 0`.
- `NewTargetKind::Constructor`, is from `
AstKind::MethodDefinitionKind::Constructor`. It will be transformed to
`this.constructor`.
- `NewTargetKind::Function`, is from ` AstKind::Function`, here the
function is not the above function. It will be transformed to `this
instanceof _target ? this.constructor : void 0`, here `_target` comes
from the function name or is created by scope uid ident.
2024-01-10 23:59:56 +08:00
..
benchmark refactor(benchmark): use more complicated files (#1811) 2023-12-25 17:27:02 +08:00
common chore(deps): bump the dependencies group with 11 updates (#1865) 2024-01-01 08:06:33 +00:00
coverage feat(task): codegen test262 runtime test (#1959) 2024-01-10 17:12:11 +08:00
minsize refactor(rust): move to workspace lint table (#1444) 2023-11-20 14:38:10 +08:00
prettier_conformance feat(prettier): add print_binaryish_expressions (#1664) 2023-12-13 22:52:53 +08:00
rulegen feat(tasks): Add eslint-plugin-jsdoc rulegen (#1965) 2024-01-09 21:37:24 +08:00
transform_conformance feat(transform): support es2015 new target (#1967) 2024-01-10 23:59:56 +08:00
libs.txt refactor(benchmark): use more complicated files (#1811) 2023-12-25 17:27:02 +08:00