File tree 4 files changed +18
-1
lines changed
swc/tests/fixture/issues-8xxx/8356
swc_ecma_transforms_base/src
4 files changed +18
-1
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "jsc" : {
3
+ "target" : " es2017"
4
+ }
5
+ }
Original file line number Diff line number Diff line change
1
+ const obj = {
2
+ async * asyncYield ( ) {
3
+ return await ( yield * nestedAsyncYield ( ) ) ;
4
+ } ,
5
+ } ;
Original file line number Diff line number Diff line change
1
+ const obj = {
2
+ async * asyncYield ( ) {
3
+ return await ( yield * nestedAsyncYield ( ) ) ;
4
+ }
5
+ } ;
Original file line number Diff line number Diff line change @@ -222,7 +222,9 @@ impl VisitMut for Fixer<'_> {
222
222
self . ctx = old;
223
223
224
224
match & * expr. arg {
225
- Expr :: Cond ( ..) | Expr :: Assign ( ..) | Expr :: Bin ( ..) => self . wrap ( & mut expr. arg ) ,
225
+ Expr :: Cond ( ..) | Expr :: Assign ( ..) | Expr :: Bin ( ..) | Expr :: Yield ( ..) => {
226
+ self . wrap ( & mut expr. arg )
227
+ }
226
228
_ => { }
227
229
}
228
230
}
You can’t perform that action at this time.
0 commit comments