Fix negate_iife regression #1254

This commit is contained in:
kzc
2016-08-16 21:54:54 -04:00
parent 781f26eda1
commit d854523783
2 changed files with 30 additions and 0 deletions

View File

@@ -130,3 +130,31 @@ negate_iife_issue_1073: {
}(7))();
}
}
issue_1254_negate_iife_false: {
options = {
negate_iife: false,
}
input: {
(function() {
return function() {
console.log('test')
};
})()();
}
expect_exact: '(function(){return function(){console.log("test")}})()();'
}
issue_1254_negate_iife_true: {
options = {
negate_iife: true,
}
input: {
(function() {
return function() {
console.log('test')
};
})()();
}
expect_exact: '!function(){return function(){console.log("test")}}()();'
}