Improve optimizing function() { if(c){return foo} bar();}

closes #1437
This commit is contained in:
Anthony Van de Gejuchte
2017-02-18 18:56:18 +08:00
committed by alexlamsl
parent 7f8d72d9d3
commit dd31d12a91
4 changed files with 107 additions and 8 deletions

View File

@@ -82,7 +82,7 @@ issue979_test_negated_is_best: {
1!=a||2!=b||foo();
}
function f7() {
return 1!=a&&2!=b?bar():void foo();
if(1!=a&&2!=b)return bar();foo()
}
}
}