public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fcb6bc
)
fix output for arrays containing undefined values
author
Mihai Bazon
<mihai@bazon.net>
Tue, 28 Aug 2012 12:38:35 +0000
(15:38 +0300)
committer
Mihai Bazon
<mihai@bazon.net>
Tue, 28 Aug 2012 12:38:35 +0000
(15:38 +0300)
[1,,2,] ==> [1,,2] instead of [1,undefined,2]
lib/output.js
patch
|
blob
|
history
diff --git
a/lib/output.js
b/lib/output.js
index
7cd3e3c
..
5f2f46d
100644
(file)
--- a/
lib/output.js
+++ b/
lib/output.js
@@
-812,7
+812,8
@@
function OutputStream(options) {
if (len > 0) output.space();
a.forEach(function(exp, i){
if (i) output.comma();
- exp.print(output);
+ if (!(exp instanceof AST_Undefined))
+ exp.print(output);
});
if (len > 0) output.space();
});