From 5eb2462e29984eab07728eba0d2cd4b7d1600a18 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Fri, 14 Nov 2014 00:54:28 +1100 Subject: [PATCH] fix up semicolons for module ExportDeclaration generator --- lib/6to5/generation/generators/modules.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/6to5/generation/generators/modules.js b/lib/6to5/generation/generators/modules.js index 60d39d5edf..871afe085f 100644 --- a/lib/6to5/generation/generators/modules.js +++ b/lib/6to5/generation/generators/modules.js @@ -25,9 +25,10 @@ exports.ExportDeclaration = function (node, print) { if (node.declaration) { print(node.declaration); + if (t.isStatement(node.declaration)) return; } else { if (specifiers.length === 1 && t.isExportBatchSpecifier(specifiers[0])) { - this.push("*"); + print(specifiers[0]); } else { this.push("{"); if (specifiers.length) {