update test (#1441)

improved reduce_vars & binary operands produce more optimal results
This commit is contained in:
Alex Lam S.L
2017-01-26 19:59:32 +08:00
committed by Richard van Velzen
parent 1eaa211e09
commit 7f8d72d9d3

View File

@@ -76,6 +76,7 @@ constant_join_2: {
for_loop: { for_loop: {
options = { options = {
unsafe : true, unsafe : true,
unused : true,
evaluate : true, evaluate : true,
reduce_vars : true reduce_vars : true
}; };
@@ -110,7 +111,7 @@ for_loop: {
function f1() { function f1() {
var a = [1, 2, 3]; var a = [1, 2, 3];
for (var i = 0, len = 3; i < len; i++) for (var i = 0; i < 3; i++)
console.log(a[i]); console.log(a[i]);
} }