pull/6219/head
Lyu Jason 5 years ago
parent cb97ad1454
commit 6ef44d0f42

@ -232,7 +232,7 @@ export default class AwaitBlockWrapper extends Wrapper {
const dependencies = this.node.expression.dynamic_dependencies(); const dependencies = this.node.expression.dynamic_dependencies();
const update_child_context = b`@update_child_context(${info}, #ctx, #dirty)`; const update_await_block_branch = b`@update_await_block_branch(${info}, #ctx, #dirty)`;
if (dependencies.length > 0) { if (dependencies.length > 0) {
const condition = x` const condition = x`
@ -249,7 +249,7 @@ export default class AwaitBlockWrapper extends Wrapper {
if (${condition}) { if (${condition}) {
} else { } else {
${update_child_context} ${update_await_block_branch}
} }
`); `);
} else { } else {
@ -260,7 +260,7 @@ export default class AwaitBlockWrapper extends Wrapper {
} else { } else {
if (this.pending.block.has_update_method) { if (this.pending.block.has_update_method) {
block.chunks.update.push(b` block.chunks.update.push(b`
${update_child_context} ${update_await_block_branch}
`); `);
} }
} }

@ -84,7 +84,7 @@ export function handle_promise(promise, info) {
} }
} }
export function update_child_context(info, ctx, dirty) { export function update_await_block_branch(info, ctx, dirty) {
const child_ctx = ctx.slice(); const child_ctx = ctx.slice();
const { resolved } = info; const { resolved } = info;

Loading…
Cancel
Save