diff --git a/src/statement.js b/src/statement.js index a93250728..1c02850a3 100644 --- a/src/statement.js +++ b/src/statement.js @@ -526,6 +526,13 @@ pp.parseExport = function(node) { if (this.eatContextual("from")) { node.source = this.type === tt.string ? this.parseExprAtom() : this.unexpected() } else { + // check for keywords used as local names + for (let i=0; i