public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec42025
)
backport of #2835 (#2841)
author
Alex Lam S.L
<alexlamsl@gmail.com>
Mon, 22 Jan 2018 21:45:45 +0000
(
05:45
+0800)
committer
GitHub
<noreply@github.com>
Mon, 22 Jan 2018 21:45:45 +0000
(
05:45
+0800)
lib/compress.js
patch
|
blob
|
history
diff --git
a/lib/compress.js
b/lib/compress.js
index
a8fa0e1
..
33b4313
100644
(file)
--- a/
lib/compress.js
+++ b/
lib/compress.js
@@
-1642,7
+1642,7
@@
merge(Compressor.prototype, {
var stat = null;
for (var i = 0, len = block.body.length; i < len; i++) {
var line = block.body[i];
- if (line instanceof AST_
Definitions
&& declarations_only(line)) {
+ if (line instanceof AST_
Var
&& declarations_only(line)) {
decls.push(line);
} else if (stat) {
return false;