aboutsummaryrefslogtreecommitdiff
path: root/test/compress/drop-console.js
blob: 7df6d9dcbbebbce632cdf797421927ce8bbf7867 (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
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;
    }
}