[Pkg-javascript-commits] [uglifyjs] 107/190: collapse_vars: avoid replacement across AST_Case nodes to be on safe side even though no issues seen.
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Aug 7 23:17:17 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to annotated tag upstream/2.7.0
in repository uglifyjs.
commit 7c3fee9e31e80fe60d1d776cdf81d9283490ff87
Author: kzc <zaxxon2011 at gmail.com>
Date: Fri Jan 29 10:35:07 2016 -0500
collapse_vars: avoid replacement across AST_Case nodes to be on safe side even though no issues seen.
---
lib/compress.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/compress.js b/lib/compress.js
index 68471a5..6fdf8f2 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -320,6 +320,7 @@ merge(Compressor.prototype, {
if (node instanceof AST_Lambda
|| node instanceof AST_Try
|| node instanceof AST_With
+ || node instanceof AST_Case
|| node instanceof AST_IterationStatement
|| (parent instanceof AST_If && node !== parent.condition)
|| (parent instanceof AST_Conditional && node !== parent.condition)
--
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