keep_var_for_in: { options = { hoist_vars: true, unused: true, } input: { (function(obj){ var foo = 5; for (var i in obj) return foo; })(); } expect: { (function(obj){ var i, foo = 5; for (i in obj) return foo; })(); } }
index : tracifyjs | ||
Reverse engineer's tool for tracing the flow of data in JS program, based on UglifyJS |
aboutsummaryrefslogtreecommitdiff |
keep_var_for_in: { options = { hoist_vars: true, unused: true, } input: { (function(obj){ var foo = 5; for (var i in obj) return foo; })(); } expect: { (function(obj){ var i, foo = 5; for (i in obj) return foo; })(); } }