[ES6] Fix handling of semicolons in export parse.

This commit is contained in:
kzc
2016-07-26 09:50:35 -04:00
committed by Richard van Velzen
parent 27d3669800
commit d224d71b8d

View File

@@ -1101,7 +1101,7 @@ function parse($TEXT, options) {
return tmp = import_(), semicolon(), tmp;
case "export":
return tmp = export_(), semicolon(), tmp;
return export_();
default:
unexpected();
@@ -1997,6 +1997,7 @@ function parse($TEXT, options) {
exported_definition = statement();
} else {
exported_value = expression();
semicolon();
}
return new AST_Export({