fix output for arrays containing undefined values
[1,,2,] ==> [1,,2] instead of [1,undefined,2]
This commit is contained in:
parent
7fcb6bcb12
commit
1b6bcca717
|
|
@ -812,7 +812,8 @@ 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();
|
||||||
exp.print(output);
|
if (!(exp instanceof AST_Undefined))
|
||||||
|
exp.print(output);
|
||||||
});
|
});
|
||||||
if (len > 0) output.space();
|
if (len > 0) output.space();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user