add expressionStatement around system module wildcard exports

This commit is contained in:
Sebastian McKenzie
2015-01-06 12:17:20 +11:00
parent fc59f1ff46
commit d531c8aa4c
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ SystemFormatter.prototype._exportsWildcard = function (objectIdentifier, node) {
var right = objectIdentifier;
var block = t.blockStatement([
this.buildExportCall(leftIdentifier, valIdentifier)
t.expressionStatement(this.buildExportCall(leftIdentifier, valIdentifier))
]);
return this._addImportSource(t.forInStatement(left, right, block), node);