swc/ecmascript/codegen/tests/references/0f809258920b3469.js
강동윤 7715c2626b
Issues (#404, #406, #407) (#408)
swc_ecma_transforms:
 - fix mis-referencing caused by destructuring (#404)
 - fix invalid code generated by comment on arrow functions (#406)
 - fix string concatation of template literal (#407)
 - hygiene: fix rewriting of object pattern
 - fix test module to prevent SIGILL
 - fix module import order (using IndexMap)
2019-09-18 14:40:22 +09:00

23 lines
491 B
JavaScript

c: {
a();
switch(1){
case 2:
b();
if (a) break c;
for(var b = 3; b < 4; b++){
if (b > 5) break; // this break refers to the for, not to the switch; thus it
// this break refers to the for, not to the switch; thus it
// shouldn't ruin our optimization
d.e(b);
}
f();
case 6 + 7:
g();
break;
default:
h();
}
}