|
|
|
@ -17,13 +17,7 @@ export function AwaitExpression(node, context) {
|
|
|
|
|
context.state.fragment.metadata.has_await = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
suspend = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Only set has_await on the boundary when we're in a template expression context
|
|
|
|
|
// (not in event handlers or other non-template contexts)
|
|
|
|
|
if (context.state.async_hoist_boundary && context.state.expression) {
|
|
|
|
|
context.state.async_hoist_boundary.metadata.is_async = true;
|
|
|
|
|
if (context.state.async_hoist_boundary) {
|
|
|
|
|
const len = context.state.async_hoist_boundary.metadata.hoisted_promises.promises.push(
|
|
|
|
|
node.argument
|
|
|
|
|
);
|
|
|
|
@ -37,6 +31,9 @@ export function AwaitExpression(node, context) {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
suspend = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (context.state.title) {
|
|
|
|
|
context.state.title.metadata.has_await = true;
|
|
|
|
|
}
|
|
|
|
|