swc/ecmascript/codegen/tests/references/0f809258920b3469.js

44 lines
1.3 KiB
JavaScript
Raw Normal View History

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
// shouldn't ruin our optimization
d.// this break refers to the for, not to the switch; thus it
// shouldn't ruin our optimization
d.e(// this break refers to the for, not to the switch; thus it
// shouldn't ruin our optimization
d.e(b);
}
// this break refers to the for, not to the switch; thus it
// shouldn't ruin our optimization
d.e(b);
}
f();
case 6 + 7:
// 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:
// 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();
}
}