@@ -463,32 +463,35 @@ public void testDecomposeComplexYieldExpression() {
463
463
"}" ),
464
464
lines (
465
465
"function f(){" ,
466
- "var obj;" ,
467
- "var JSCompiler_temp$jscomp$0;" ,
468
- "var JSCompiler_temp_const$jscomp$2;" ,
469
- "var JSCompiler_temp_const$jscomp$1;" ,
470
- "return $jscomp.generator.createGenerator(f,function($jscomp$generator$context) {" ,
471
- " switch($jscomp$generator$context.nextAddress) {" ,
472
- " case 1:" ,
473
- " obj = {bar:function(x){}};" ,
474
- " return $jscomp$generator$context.yield(5,2);" ,
475
- " case 2:" ,
476
- " if (!(JSCompiler_temp$jscomp$0 = $jscomp$generator$context.yieldResult)) {" ,
477
- " $jscomp$generator$context.jumpTo(3);" ,
478
- " break;" ,
479
- " }" ,
480
- " JSCompiler_temp_const$jscomp$2 = obj;" ,
481
- " JSCompiler_temp_const$jscomp$1 = JSCompiler_temp_const$jscomp$2.bar;" ,
482
- " return $jscomp$generator$context.yield(5,4);" ,
483
- " case 4:" ,
484
- " JSCompiler_temp$jscomp$0 = JSCompiler_temp_const$jscomp$1.call(" ,
485
- " JSCompiler_temp_const$jscomp$2," ,
486
- " $jscomp$generator$context.yieldResult);" ,
487
- " case 3:" ,
488
- " JSCompiler_temp$jscomp$0;" ,
489
- " $jscomp$generator$context.jumpToEnd();" ,
490
- " }" ,
491
- " })" ,
466
+ " var obj;" ,
467
+ " var JSCompiler_temp$jscomp$0;" ,
468
+ " var JSCompiler_temp_const$jscomp$2;" ,
469
+ " var JSCompiler_temp_const$jscomp$1;" ,
470
+ " var JSCompiler_temp_const$jscomp$3;" ,
471
+ " return $jscomp.generator.createGenerator(f, function($jscomp$generator$context) {" ,
472
+ " switch($jscomp$generator$context.nextAddress) {" ,
473
+ " case 1:" ,
474
+ " obj = {bar:function(x) {}};" ,
475
+ " return $jscomp$generator$context.yield(5, 2);" ,
476
+ " case 2:" ,
477
+ " if (!(JSCompiler_temp$jscomp$0 = $jscomp$generator$context.yieldResult)) {" ,
478
+ " $jscomp$generator$context.jumpTo(3);" ,
479
+ " break;" ,
480
+ " }" ,
481
+ " JSCompiler_temp_const$jscomp$2 = obj;" ,
482
+ " JSCompiler_temp_const$jscomp$1 = JSCompiler_temp_const$jscomp$2.bar;" ,
483
+ " JSCompiler_temp_const$jscomp$3 = JSCompiler_temp_const$jscomp$2;" ,
484
+ " return $jscomp$generator$context.yield(5, 4);" ,
485
+ " case 4:" ,
486
+ " JSCompiler_temp$jscomp$0 =" ,
487
+ " JSCompiler_temp_const$jscomp$1.call(" ,
488
+ " JSCompiler_temp_const$jscomp$3," ,
489
+ " $jscomp$generator$context.yieldResult);" ,
490
+ " case 3:" ,
491
+ " JSCompiler_temp$jscomp$0;" ,
492
+ " $jscomp$generator$context.jumpToEnd();" ,
493
+ " }" ,
494
+ " });" ,
492
495
"}" ));
493
496
}
494
497
0 commit comments