Comparing version 1.0.0 to 1.0.1
@@ -6,3 +6,3 @@ { | ||
"main": "dist/acorn.js", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"engines": { | ||
@@ -9,0 +9,0 @@ "node": ">=0.4.0" |
@@ -40,3 +40,3 @@ // Acorn is a tiny, fast JavaScript parser written in JavaScript. | ||
export const version = "1.0.0" | ||
export const version = "1.0.1" | ||
@@ -43,0 +43,0 @@ // The main exported interface (under `self.acorn` when in the |
@@ -60,2 +60,6 @@ // The algorithm used to determine whether a regexp can appear at a | ||
tt.parenR.updateContext = tt.braceR.updateContext = function() { | ||
if (this.context.length == 1) { | ||
this.exprAllowed = true | ||
return | ||
} | ||
let out = this.context.pop() | ||
@@ -68,3 +72,3 @@ if (out === types.b_stat && this.curContext() === types.f_expr) { | ||
} else { | ||
this.exprAllowed = !(out && out.isExpr) | ||
this.exprAllowed = !out.isExpr | ||
} | ||
@@ -71,0 +75,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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
458960
11123
1