diff --git a/lib/6to5/generation/generator.js b/lib/6to5/generation/generator.js index 82fce1f967..73511ec6a6 100644 --- a/lib/6to5/generation/generator.js +++ b/lib/6to5/generation/generator.js @@ -165,6 +165,8 @@ CodeGenerator.prototype.print = function (node, parent, opts) { }; CodeGenerator.prototype.printJoin = function (print, nodes, opts) { + if (!nodes || !nodes.length) return; + opts = opts || {}; var self = this;