JS/Inlining: rename IneffectiveStatementElimination to RedundantStatementElimination
This commit is contained in:
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
var global = 0;
|
||||
|
||||
function se(value) {
|
||||
++global;
|
||||
return value;
|
||||
}
|
||||
|
||||
function test() {
|
||||
se(2);
|
||||
se(3);
|
||||
se('foo');
|
||||
se('bar');
|
||||
se('y');
|
||||
se(3);
|
||||
se('null');
|
||||
}
|
||||
|
||||
function box() {
|
||||
test();
|
||||
if (global != 7) return "fail: " + test();
|
||||
|
||||
return "OK";
|
||||
}
|
||||
Reference in New Issue
Block a user