Skip to content

Commit

Permalink
refactor(transformer/arrow-functions): shorten AstBuilder call
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Jan 7, 2025
1 parent 775a289 commit 46d4f03
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 46d4f03

Please sign in to comment.