[Pkg-javascript-commits] [uglifyjs] 412/491: skip only `var`s in `if_return` (#2759)
Jonas Smedegaard
dr at jones.dk
Wed Feb 14 19:51:58 UTC 2018
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/3.3.10-1
in repository uglifyjs.
commit 6a0af85c8bf8673498e89ad7226d6e8cc80b2c15
Author: Alex Lam S.L <alexlamsl at gmail.com>
Date: Wed Jan 10 19:08:46 2018 +0800
skip only `var`s in `if_return` (#2759)
fixes #2747
---
lib/compress.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/compress.js b/lib/compress.js
index 9760c54..3e7269d 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -1523,7 +1523,7 @@ merge(Compressor.prototype, {
function next_index(i) {
for (var j = i + 1, len = statements.length; j < len; j++) {
var stat = statements[j];
- if (!(stat instanceof AST_Definitions && declarations_only(stat))) {
+ if (!(stat instanceof AST_Var && declarations_only(stat))) {
break;
}
}
@@ -1533,7 +1533,7 @@ merge(Compressor.prototype, {
function prev_index(i) {
for (var j = i; --j >= 0;) {
var stat = statements[j];
- if (!(stat instanceof AST_Definitions && declarations_only(stat))) {
+ if (!(stat instanceof AST_Var && declarations_only(stat))) {
break;
}
}
--
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