Socket
Socket
Sign inDemoInstall

acorn

Package Overview
Dependencies
Maintainers
2
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acorn - npm Package Compare versions

Comparing version 4.0.10 to 4.0.11

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 4.0.11 (2017-02-07)
### Bug fixes
Allow all forms of member expressions to be parenthesized as lvalue.
## 4.0.10 (2017-02-07)

@@ -2,0 +8,0 @@

2

package.json

@@ -7,3 +7,3 @@ {

"jsnext:main": "dist/acorn.es.js",
"version": "4.0.10",
"version": "4.0.11",
"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.10"
export const version = "4.0.11"

@@ -42,0 +42,0 @@ // The main exported interface (under `self.acorn` when in the

@@ -125,6 +125,5 @@ import {types as tt} from "./tokentype"

pp.isSimpleAssignTarget = function(expr) {
return expr.type === "Identifier" ||
(expr.type === "MemberExpression" && (expr.object.type === "MemberExpression" ||
expr.object.type === "CallExpression" ||
expr.object.type === "Super"))
if (expr.type === "ParenthesizedExpression")
return this.isSimpleAssignTarget(expr.expression)
return expr.type === "Identifier" || expr.type === "MemberExpression"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc