Require semicolon after 'import * from ...'

This commit is contained in:
Marijn Haverbeke 2015-03-17 12:30:12 +01:00
parent 57bc9b1b0a
commit 19ef4ef69c

View File

@ -2734,6 +2734,7 @@
if (this.eat(tt.star)) {
this.expectContextual("from");
node.source = this.type === tt.string ? this.parseExprAtom() : this.unexpected();
this.semicolon();
return this.finishNode(node, "ExportAllDeclaration");
}
if (this.eat(tt._default)) { // export default ...;