[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;
|
return tmp = import_(), semicolon(), tmp;
|
||||||
|
|
||||||
case "export":
|
case "export":
|
||||||
return tmp = export_(), semicolon(), tmp;
|
return export_();
|
||||||
|
|
||||||
default:
|
default:
|
||||||
unexpected();
|
unexpected();
|
||||||
@@ -1997,6 +1997,7 @@ function parse($TEXT, options) {
|
|||||||
exported_definition = statement();
|
exported_definition = statement();
|
||||||
} else {
|
} else {
|
||||||
exported_value = expression();
|
exported_value = expression();
|
||||||
|
semicolon();
|
||||||
}
|
}
|
||||||
|
|
||||||
return new AST_Export({
|
return new AST_Export({
|
||||||
|
|||||||
Reference in New Issue
Block a user