From 19ef4ef69cce3bdb46632df34afd837b9673904d Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Tue, 17 Mar 2015 12:30:12 +0100 Subject: [PATCH] Require semicolon after 'import * from ...' --- acorn.js | 1 + 1 file changed, 1 insertion(+) diff --git a/acorn.js b/acorn.js index c246fa8f37..f82b9753fd 100644 --- a/acorn.js +++ b/acorn.js @@ -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 ...;