Socket
Socket
Sign inDemoInstall

babylon

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.14 to 6.0.17

12

lib/parser/expression.js

@@ -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>",

}
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc