File tree 2 files changed +3
-7
lines changed
test/runtime/samples/await-then-catch-static 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ export default class AwaitBlock extends Node {
140
140
) ;
141
141
142
142
block . builders . update . addLine (
143
- `${ info } .ctx = ctx`
143
+ `${ info } .ctx = ctx; `
144
144
) ;
145
145
146
146
if ( this . pending . block . hasUpdateMethod ) {
@@ -153,10 +153,7 @@ export default class AwaitBlock extends Node {
153
153
` ) ;
154
154
} else {
155
155
block . builders . update . addBlock ( deindent `
156
- if (${ conditions . join ( ' && ' ) } ) {
157
- ${ info } .block.c();
158
- ${ info } .block.m(${ anchor } .parentNode, ${ anchor } );
159
- }
156
+ ${ conditions . join ( ' && ' ) }
160
157
` ) ;
161
158
}
162
159
@@ -171,7 +168,7 @@ export default class AwaitBlock extends Node {
171
168
172
169
[ this . pending , this . then , this . catch ] . forEach ( status => {
173
170
status . children . forEach ( child => {
174
- child . build ( status . block , null , 'nodes' ) ;
171
+ child . build ( status . block , null , 'nodes' ) ;
175
172
} ) ;
176
173
} ) ;
177
174
}
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ let promise = new Promise(f => {
5
5
} ) ;
6
6
7
7
export default {
8
- solo : 1 ,
9
8
data : {
10
9
promise
11
10
} ,
You can’t perform that action at this time.
0 commit comments