acorn5-object-spread
Advanced tools
Comparing version 3.1.0 to 4.0.0
# acorn5-object-spread changelog | ||
## 4.0.0 | ||
* Remove support for complex rest properties since they are forbidded by the | ||
spec | ||
## 3.1.0 | ||
@@ -4,0 +9,0 @@ |
@@ -25,3 +25,9 @@ 'use strict'; | ||
if (this.type === tt.ellipsis) { | ||
prop = isPattern ? this.parseRestBinding() : this.parseSpread(refDestructuringErrors) | ||
if (isPattern) { | ||
this.next() | ||
prop.argument = this.parseIdent() | ||
this.finishNode(prop, "RestElement") | ||
} else { | ||
prop = this.parseSpread(refDestructuringErrors) | ||
} | ||
node.properties.push(prop) | ||
@@ -28,0 +34,0 @@ if (this.type === tt.comma) { |
@@ -20,3 +20,3 @@ { | ||
}, | ||
"version": "3.1.0" | ||
"version": "4.0.0" | ||
} |
@@ -36,4 +36,5 @@ # Spread and rest properties support in acorn 5 | ||
* acorn-object-rest-spread overwrites acorn`s `parseObj` with a modified copy from acorn 4, | ||
* acorn-object-rest-spread overwrites acorn's `parseObj` with a modified copy from acorn 4, | ||
so that an acorn instance with that plugin cannot for example parse `({async, foo})` | ||
and [wrongly complains about duplicate property names in patterns](https://github.com/ternjs/acorn/commit/4ee71d7c67f73c407c5f6e28f743858b936ea885). | ||
* acorn-object-rest-spread emits `SpreadElement`s with a | ||
@@ -40,0 +41,0 @@ [non-standard](https://github.com/estree/estree/blob/master/es2015.md#expressions) |
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
8557
109
51