babylon
Advanced tools
Comparing version 5.8.21 to 5.8.22
@@ -56,3 +56,3 @@ /** | ||
// current node, then we're good - all comments in the array will | ||
// come after the node and so it's safe to add then as official | ||
// come after the node and so it's safe to add them as official | ||
// trailingComments. | ||
@@ -110,3 +110,3 @@ if (this.state.trailingComments[0].start >= node.end) { | ||
// debugger, all comments will end up as leadingComments and | ||
// will otherwise be eliminated. This this step runs when the | ||
// will otherwise be eliminated. This step runs when the | ||
// commentStack is empty and there are comments left | ||
@@ -113,0 +113,0 @@ // in leadingComments. |
@@ -625,7 +625,9 @@ // A recursive descent parser operates by defining functions for all | ||
} | ||
if (!isPattern) isGenerator = this.eat(_tokenizerTypes.types.star); | ||
if (this.options.features["es7.asyncFunctions"] && this.isContextual("async")) { | ||
if (isGenerator || isPattern) this.unexpected(); | ||
if (!isPattern) { | ||
isGenerator = this.eat(_tokenizerTypes.types.star); | ||
} | ||
if (!isPattern && this.options.features["es7.asyncFunctions"] && this.isContextual("async")) { | ||
if (isGenerator) this.unexpected(); | ||
var asyncId = this.parseIdent(); | ||
if (this.match(_tokenizerTypes.types.colon) || this.match(_tokenizerTypes.types.parenL)) { | ||
if (this.match(_tokenizerTypes.types.colon) || this.match(_tokenizerTypes.types.parenL) || this.match(_tokenizerTypes.types.braceR)) { | ||
prop.key = asyncId; | ||
@@ -632,0 +634,0 @@ } else { |
@@ -881,3 +881,3 @@ "use strict"; | ||
if (prevType === _types.types._else || prevType === _types.types.semi || prevType === _types.types.eof) { | ||
if (prevType === _types.types._else || prevType === _types.types.semi || prevType === _types.types.eof || prevType === _types.types.parenR) { | ||
return true; | ||
@@ -884,0 +884,0 @@ } |
{ | ||
"name": "babylon", | ||
"version": "5.8.21", | ||
"version": "5.8.22", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", |
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
185885
4686