fix output for arrays containing undefined values
[1,,2,] ==> [1,,2] instead of [1,undefined,2]
This commit is contained in:
@@ -812,6 +812,7 @@ function OutputStream(options) {
|
|||||||
if (len > 0) output.space();
|
if (len > 0) output.space();
|
||||||
a.forEach(function(exp, i){
|
a.forEach(function(exp, i){
|
||||||
if (i) output.comma();
|
if (i) output.comma();
|
||||||
|
if (!(exp instanceof AST_Undefined))
|
||||||
exp.print(output);
|
exp.print(output);
|
||||||
});
|
});
|
||||||
if (len > 0) output.space();
|
if (len > 0) output.space();
|
||||||
|
|||||||
Reference in New Issue
Block a user