[ES6] Fix handling of semicolons in export parse.
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user