aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkzc <kzc@users.noreply.github.com>2017-05-13 14:12:14 -0400
committerAlex Lam S.L <alexlamsl@gmail.com>2017-05-14 02:12:14 +0800
commit504a436e9daac89f5226280e01ae2818fe4e8436 (patch)
tree36335920b1f003bcc87a4b13520628d01f2d5358 /.github
parent3ca902258c24209699f0b5bd5b9654252e492272 (diff)
downloadtracifyjs-504a436e9daac89f5226280e01ae2818fe4e8436.tar.gz
tracifyjs-504a436e9daac89f5226280e01ae2818fe4e8436.zip
Tweak README Notes (#1934)
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions
case "$EXPORTS":
var body = [];
- to_export.forEach(function(name){
+ to_export.forEach(function(sym){
body.push(new AST_SimpleStatement({
body: new AST_Assign({
left: new AST_Sub({
expression: new AST_SymbolRef({ name: "exports" }),
- property: new AST_String({ value: name }),
+ property: new AST_String({ value: sym.name }),
}),
operator: "=",
- right: new AST_SymbolRef({ name: name }),
+ right: new AST_SymbolRef(sym),
}),
}));
});
- return new AST_BlockStatement({ body: body });
+ return MAP.splice(body);
}
}
}));