aboutsummaryrefslogtreecommitdiff
path: root/test/compress/drop-console.js
blob: 9a91edcb45311823f3a77a828cb60db0bcd7b689 (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
drop_console_1: {
    options = {}
    input: {
        console.log('foo');
        console.log.apply(console, arguments);
    }
    expect: {
        console.log('foo');
        console.log.apply(console, arguments);
    }
}

drop_console_2: {
    options = {
        drop_console: true,
    }
    input: {
        console.log('foo');
        console.log.apply(console, arguments);
    }
    expect: {
        // with regular compression these will be stripped out as well
        void 0;
        void 0;
    }
}