Comparing version 4.0.0 to 4.0.1
@@ -0,1 +1,7 @@ | ||
## 4.0.1 (2016-08-08) | ||
### Bug fixes | ||
Fix false positives in duplicated export name errors. | ||
## 4.0.0 (2016-08-07) | ||
@@ -2,0 +8,0 @@ |
@@ -7,3 +7,3 @@ { | ||
"jsnext:main": "dist/acorn.es.js", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"engines": { | ||
@@ -10,0 +10,0 @@ "node": ">=0.4.0" |
@@ -39,3 +39,3 @@ // Acorn is a tiny, fast JavaScript parser written in JavaScript. | ||
export const version = "4.0.0" | ||
export const version = "4.0.1" | ||
@@ -42,0 +42,0 @@ // The main exported interface (under `self.acorn` when in the |
@@ -568,3 +568,3 @@ import {types as tt} from "./tokentype" | ||
if (this.eat(tt._default)) { // export default ... | ||
pp.checkExport(exports, "default", this.lastTokStart) | ||
this.checkExport(exports, "default", this.lastTokStart) | ||
let parens = this.type == tt.parenL | ||
@@ -664,4 +664,4 @@ let expr = this.parseMaybeAssign() | ||
node.local = this.parseIdent(this.type === tt._default) | ||
this.checkExport(exports, node.local.name, node.local.start) | ||
node.exported = this.eatContextual("as") ? this.parseIdent(true) : node.local | ||
this.checkExport(exports, node.exported.name, node.exported.start) | ||
nodes.push(this.finishNode(node, "ExportSpecifier")) | ||
@@ -668,0 +668,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
580343