add expressionStatement around system module wildcard exports
This commit is contained in:
parent
fc59f1ff46
commit
d531c8aa4c
@ -31,7 +31,7 @@ SystemFormatter.prototype._exportsWildcard = function (objectIdentifier, node) {
|
|||||||
var right = objectIdentifier;
|
var right = objectIdentifier;
|
||||||
|
|
||||||
var block = t.blockStatement([
|
var block = t.blockStatement([
|
||||||
this.buildExportCall(leftIdentifier, valIdentifier)
|
t.expressionStatement(this.buildExportCall(leftIdentifier, valIdentifier))
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return this._addImportSource(t.forInStatement(left, right, block), node);
|
return this._addImportSource(t.forInStatement(left, right, block), node);
|
||||||
|
|||||||
@ -4,7 +4,7 @@ System.register(["foo"], function (_export) {
|
|||||||
return {
|
return {
|
||||||
setters: [function (_foo) {
|
setters: [function (_foo) {
|
||||||
for (var _key in _foo) {
|
for (var _key in _foo) {
|
||||||
_export(_key, _foo[_key])
|
_export(_key, _foo[_key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
_export("foo", _foo.foo);
|
_export("foo", _foo.foo);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user