Remove console.log and add extra test case

This commit is contained in:
Richard van Velzen
2016-10-06 14:11:19 +02:00
parent e05510f3bc
commit 6389e52305
2 changed files with 15 additions and 1 deletions

View File

@@ -559,7 +559,6 @@ function OutputStream(options) {
if (output.option('wrap_iife')) {
var p = output.parent();
console.log()
return p instanceof AST_Call && p.expression === this;
}

View File

@@ -15,6 +15,21 @@ wrap_iife: {
expect_exact: '(function(){return function(){console.log("test")}})()();'
}
wrap_iife_in_expression: {
options = {
negate_iife: false,
}
beautify = {
wrap_iife: true,
}
input: {
foo = (function () {
return bar();
})();
}
expect_exact: 'foo=(function(){return bar()})();'
}
wrap_iife_in_return_call: {
options = {
negate_iife: false,