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