aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-913.js
blob: 9d34d9d98e1b956b22f6313f6a572923649cca79 (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;
        })();
    }
}