pull/1418/head
Rich Harris 8 years ago
parent 6437d7bfa7
commit 8d772b163b

@ -140,7 +140,7 @@ export default class AwaitBlock extends Node {
); );
block.builders.update.addLine( block.builders.update.addLine(
`${info}.ctx = ctx` `${info}.ctx = ctx;`
); );
if (this.pending.block.hasUpdateMethod) { if (this.pending.block.hasUpdateMethod) {
@ -153,10 +153,7 @@ export default class AwaitBlock extends Node {
`); `);
} else { } else {
block.builders.update.addBlock(deindent` block.builders.update.addBlock(deindent`
if (${conditions.join(' && ')}) { ${conditions.join(' && ')}
${info}.block.c();
${info}.block.m(${anchor}.parentNode, ${anchor});
}
`); `);
} }
@ -171,7 +168,7 @@ export default class AwaitBlock extends Node {
[this.pending, this.then, this.catch].forEach(status => { [this.pending, this.then, this.catch].forEach(status => {
status.children.forEach(child => { status.children.forEach(child => {
child.build(status.block, null,'nodes'); child.build(status.block, null, 'nodes');
}); });
}); });
} }

@ -5,7 +5,6 @@ let promise = new Promise(f => {
}); });
export default { export default {
solo: 1,
data: { data: {
promise promise
}, },

Loading…
Cancel
Save