aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-892.js
blob: 93b42d70c55ef40f8978e5321c9572f2f8c3f5fb (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
dont_mangle_arguments: {
    mangle = {
    };
    options = {
        booleans: true,
        comparisons: true,
        conditionals: true,
        dead_code: true,
        drop_debugger: true,
        evaluate: true,
        hoist_funs: true,
        hoist_vars: true,
        if_return: true,
        join_vars: true,
        keep_fargs: true,
        keep_fnames: false,
        loops: true,
        negate_iife: false,
        properties: true,
        sequences: true,
        side_effects: true,
        unused: true,
    }
    input: {
        (function(){
            var arguments = arguments, not_arguments = 9;
            console.log(not_arguments, arguments);
        })(5,6,7);
    }
    expect_exact: "(function(){var arguments=arguments,o=9;console.log(o,arguments)})(5,6,7);"
    expect_stdout: true
}