[Pkg-javascript-commits] [uglifyjs] 32/49: Remove console.log and add extra test case
Jonas Smedegaard
dr at jones.dk
Fri Dec 9 11:43:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository uglifyjs.
commit 6389e52305f0d2e75a7bc6f8703c8d163d04cb99
Author: Richard van Velzen <rvanvelzen at experty.com>
Date: Thu Oct 6 14:11:19 2016 +0200
Remove console.log and add extra test case
---
lib/output.js | 1 -
test/compress/wrap_iife.js | 15 +++++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/lib/output.js b/lib/output.js
index c20a036..014dac4 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -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;
}
diff --git a/test/compress/wrap_iife.js b/test/compress/wrap_iife.js
index b1b88ac..5c45853 100644
--- a/test/compress/wrap_iife.js
+++ b/test/compress/wrap_iife.js
@@ -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,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list