mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
refactor(transformer): use ctx.alloc over ctx.ast.alloc where possible (#7066)
Pure refactor. Just shorten code a little.
This commit is contained in:
parent
b0211a1f9e
commit
7122e0074b
1 changed files with 2 additions and 2 deletions
|
|
@ -415,7 +415,7 @@ impl<'a, 'ctx> AsyncGeneratorExecutor<'a, 'ctx> {
|
|||
if function_name.is_none() && !Self::is_function_length_affected(¶ms) {
|
||||
return self.create_async_to_generator_call(
|
||||
params,
|
||||
ctx.ast.alloc(body),
|
||||
ctx.alloc(body),
|
||||
generator_function_id,
|
||||
ctx,
|
||||
);
|
||||
|
|
@ -448,7 +448,7 @@ impl<'a, 'ctx> AsyncGeneratorExecutor<'a, 'ctx> {
|
|||
let statement = self.create_async_to_generator_declaration(
|
||||
&bound_ident,
|
||||
params,
|
||||
ctx.ast.alloc(body),
|
||||
ctx.alloc(body),
|
||||
generator_function_id,
|
||||
ctx,
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue