more tests for return undefined optimization

This commit is contained in:
kzc 2015-10-28 13:41:41 -04:00 committed by Richard van Velzen
parent 7491d07666
commit 841a661071

View File

@ -69,6 +69,15 @@ return_void_0_true: {
bar(b);
return undefined;
}
function f10() {
return false;
}
function f11() {
return null;
}
function f12() {
return 0;
}
}
expect: {
function f0() {}
@ -103,6 +112,15 @@ return_void_0_true: {
foo(a);
bar(b);
}
function f10() {
return !1;
}
function f11() {
return null;
}
function f12() {
return 0;
}
}
}
@ -177,6 +195,15 @@ return_void_0_false: {
bar(b);
return undefined;
}
function f10() {
return false;
}
function f11() {
return null;
}
function f12() {
return 0;
}
}
expect: {
function f0() {
@ -224,6 +251,15 @@ return_void_0_false: {
bar(b);
return void 0;
}
function f10() {
return !1;
}
function f11() {
return null;
}
function f12() {
return 0;
}
}
}