mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
fix statement doubling when implicitly returning an export
This commit is contained in:
parent
04a1d8207c
commit
e57b0c1126
@ -462,7 +462,10 @@ Statement = Transformer({
|
||||
})
|
||||
else
|
||||
return build.group({
|
||||
node,
|
||||
{
|
||||
"export",
|
||||
node[2]
|
||||
},
|
||||
build.assign({
|
||||
names = node[2],
|
||||
values = node[3]
|
||||
|
@ -263,8 +263,9 @@ Statement = Transformer {
|
||||
cls
|
||||
}
|
||||
else
|
||||
-- pull out vawlues and assign them after the export
|
||||
build.group {
|
||||
node
|
||||
{ "export", node[2] }
|
||||
build.assign {
|
||||
names: node[2]
|
||||
values: node[3]
|
||||
|
Loading…
Reference in New Issue
Block a user