2017-02-18 11:33:05 +00:00
|
|
|
drop_console_1: {
|
2018-07-01 06:34:42 +00:00
|
|
|
options = {}
|
2017-02-18 11:33:05 +00:00
|
|
|
input: {
|
|
|
|
|
console.log('foo');
|
|
|
|
|
console.log.apply(console, arguments);
|
|
|
|
|
}
|
|
|
|
|
expect: {
|
|
|
|
|
console.log('foo');
|
|
|
|
|
console.log.apply(console, arguments);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
drop_console_2: {
|
2018-07-01 06:34:42 +00:00
|
|
|
options = {
|
|
|
|
|
drop_console: true,
|
|
|
|
|
}
|
2017-02-18 11:33:05 +00:00
|
|
|
input: {
|
|
|
|
|
console.log('foo');
|
|
|
|
|
console.log.apply(console, arguments);
|
|
|
|
|
}
|
|
|
|
|
expect: {
|
|
|
|
|
// with regular compression these will be stripped out as well
|
|
|
|
|
void 0;
|
|
|
|
|
void 0;
|
|
|
|
|
}
|
|
|
|
|
}
|