pull/15844/head
Rich Harris 3 months ago
parent e2bcd8c0e8
commit 2e854dea69

@ -14,15 +14,8 @@ export function AwaitExpression(node, context) {
const save = tla || !is_last_evaluated_expression(context.path, node);
if (dev || save) {
return b.call(
b.await(
b.call(
'$.save',
node.argument && /** @type {Expression} */ (context.visit(node.argument)),
!save && b.false
)
)
);
const expression = /** @type {Expression} */ (context.visit(node.argument));
return b.call(b.await(b.call('$.save', expression, !save && b.false)));
}
return context.next();

Loading…
Cancel
Save