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 5.8.21 to 5.8.22

4

lib/parser/comments.js

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

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