Skip to content

Commit 8d772b1

Browse files
committed
fix #1417
1 parent 6437d7b commit 8d772b1

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/compile/nodes/AwaitBlock.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export default class AwaitBlock extends Node {
140140
);
141141

142142
block.builders.update.addLine(
143-
`${info}.ctx = ctx`
143+
`${info}.ctx = ctx;`
144144
);
145145

146146
if (this.pending.block.hasUpdateMethod) {
@@ -153,10 +153,7 @@ export default class AwaitBlock extends Node {
153153
`);
154154
} else {
155155
block.builders.update.addBlock(deindent`
156-
if (${conditions.join(' && ')}) {
157-
${info}.block.c();
158-
${info}.block.m(${anchor}.parentNode, ${anchor});
159-
}
156+
${conditions.join(' && ')}
160157
`);
161158
}
162159

@@ -171,7 +168,7 @@ export default class AwaitBlock extends Node {
171168

172169
[this.pending, this.then, this.catch].forEach(status => {
173170
status.children.forEach(child => {
174-
child.build(status.block, null,'nodes');
171+
child.build(status.block, null, 'nodes');
175172
});
176173
});
177174
}

test/runtime/samples/await-then-catch-static/_config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ let promise = new Promise(f => {
55
});
66

77
export default {
8-
solo: 1,
98
data: {
109
promise
1110
},

0 commit comments

Comments
 (0)