fix double semi-colons from beautify in export

This commit is contained in:
alexlamsl 2017-11-10 11:39:10 +08:00
parent dd0a36119b
commit e6cfeb915e
2 changed files with 11 additions and 0 deletions

View File

@ -1361,6 +1361,7 @@ function OutputStream(options) {
self.exported_value.print(output); self.exported_value.print(output);
} else if (self.exported_definition) { } else if (self.exported_definition) {
self.exported_definition.print(output); self.exported_definition.print(output);
if (self.exported_definition instanceof AST_Definitions) return;
} }
if (self.module_name) { if (self.module_name) {
output.space(); output.space();

View File

@ -250,3 +250,13 @@ dynamic_import: {
r.foo(); r.foo();
} }
} }
trailing_comma: {
beautify = {
beautify: true,
}
input: {
export const a = 1;
}
expect_exact: "export const a = 1;"
}