babylon
Advanced tools
Comparing version 6.0.14 to 6.0.17
@@ -746,8 +746,3 @@ /* @flow */ | ||
pp.parseObjPropValue = function (prop, startPos, startLoc, isGenerator, isAsync, isPattern, refShorthandDefaultPos) { | ||
if (this.eat(_tokenizerTypes.types.colon)) { | ||
prop.value = isPattern ? this.parseMaybeDefault(this.state.start, this.state.startLoc) : this.parseMaybeAssign(false, refShorthandDefaultPos); | ||
return this.finishNode(prop, "ObjectProperty"); | ||
} | ||
if (this.match(_tokenizerTypes.types.parenL)) { | ||
if (isAsync || isGenerator || this.match(_tokenizerTypes.types.parenL)) { | ||
if (isPattern) this.unexpected(); | ||
@@ -760,2 +755,7 @@ prop.kind = "method"; | ||
if (this.eat(_tokenizerTypes.types.colon)) { | ||
prop.value = isPattern ? this.parseMaybeDefault(this.state.start, this.state.startLoc) : this.parseMaybeAssign(false, refShorthandDefaultPos); | ||
return this.finishNode(prop, "ObjectProperty"); | ||
} | ||
if (!prop.computed && prop.key.type === "Identifier" && (prop.key.name === "get" || prop.key.name === "set") && !this.match(_tokenizerTypes.types.comma) && !this.match(_tokenizerTypes.types.braceR)) { | ||
@@ -762,0 +762,0 @@ if (isGenerator || isAsync || isPattern) this.unexpected(); |
{ | ||
"name": "babylon", | ||
"version": "6.0.14", | ||
"version": "6.0.17", | ||
"description": "A JavaScript parser", | ||
@@ -16,2 +16,2 @@ "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
196819