diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/drop-console.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/compress/drop-console.js b/test/compress/drop-console.js new file mode 100644 index 00000000..162b339c --- /dev/null +++ b/test/compress/drop-console.js @@ -0,0 +1,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;
+ }
+}
|