aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-913.js
blob: 57fd563761e6c85e447418340cc34e6b428a79de (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
        })();
    }
}