get context at start of if update block instead of at the end, fixes #5508

pull/5531/head
Jesse Skinner 5 years ago
parent 2d5bf242a9
commit 9778421f30

@ -96,7 +96,7 @@ class AwaitBlockBranch extends Wrapper {
`);
this.block.chunks.declarations.push(b`${get_context}(#ctx)`);
if (this.block.has_update_method) {
this.block.chunks.update.push(b`${get_context}(#ctx)`);
this.block.chunks.update.unshift(b`${get_context}(#ctx)`);
}
}
}

Loading…
Cancel
Save