mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
refactor(transformer/arrow-functions): shorten AstBuilder call (#8317)
Follow-on after #8024. Pure refactor, just shorten code.
This commit is contained in:
parent
ec88c68c28
commit
57e9dcf046
1 changed files with 1 additions and 1 deletions
|
|
@ -1088,7 +1088,7 @@ impl<'a> ArrowFunctionConverter<'a> {
|
|||
.visit_statements(statements);
|
||||
None
|
||||
} else {
|
||||
Some(Expression::ThisExpression(ctx.ast.alloc_this_expression(SPAN)))
|
||||
Some(ctx.ast.expression_this(SPAN))
|
||||
};
|
||||
Self::adjust_binding_scope(target_scope_id, &this_var, ctx);
|
||||
let variable_declarator = ctx.ast.variable_declarator(
|
||||
|
|
|
|||
Loading…
Reference in a new issue