Skip to content

Commit

Permalink
refactor(transformer/arrow-functions): shorten AstBuilder call (#8317)
Browse files Browse the repository at this point in the history
Follow-on after #8024. Pure refactor, just shorten code.
  • Loading branch information
overlookmotel committed Jan 8, 2025
1 parent ec88c68 commit 57e9dcf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 57e9dcf

Please sign in to comment.