mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
7715c2626b
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)
23 lines
491 B
JavaScript
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();
|
|
}
|
|
}
|