swc/ecmascript/codegen/tests/references/0f809258920b3469.js
강동윤 9a5de4beb6
More transcompilers (#49)
transforms:
 - implement String.length simplifier
 - implement more arithmetic operations
 - new Date() is side-effect free
 - implement left.rhs * right
 - optimize `SeqExpr` while creation
 
 - implement es3 - member expression literals pass
 - implement es2015 - classes pass

codegen: 
 - handle infinity correctly
 - disable comments for testing (it's buggy)

ast:
 - add methods about reserved words
2018-11-14 19:40:46 +09:00

19 lines
317 B
JavaScript

c: {
a();
switch(1){
case 2:
b();
if (a) break c;
for(var b = 3; b < 4; b++){
if (b > 5) break;
d.e(b);
}
f();
case 6 + 7:
g();
break;
default:
h();
}
}