meriyah 4.3.6 → 4.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8309,6 +8309,7 @@ function parseClassBody(parser, context, inheritedContext, scope, kind, origin,
8309
8309
  const { tokenPos, linePos, colPos } = parser;
8310
8310
  consume(parser, context | 32768, 2162700);
8311
8311
  context = (context | 134217728) ^ 134217728;
8312
+ let hasConstr = parser.flags & 32;
8312
8313
  parser.flags = (parser.flags | 32) ^ 32;
8313
8314
  const body = [];
8314
8315
  let decorators;
@@ -8329,6 +8330,7 @@ function parseClassBody(parser, context, inheritedContext, scope, kind, origin,
8329
8330
  body.push(parseClassElementList(parser, context, scope, inheritedContext, kind, decorators, 0, inGroup, parser.tokenPos, parser.linePos, parser.colPos));
8330
8331
  }
8331
8332
  consume(parser, origin & 8 ? context | 32768 : context, 1074790415);
8333
+ parser.flags = (parser.flags & ~32) | hasConstr;
8332
8334
  return finishNode(parser, context, tokenPos, linePos, colPos, {
8333
8335
  type: 'ClassBody',
8334
8336
  body
@@ -8505,7 +8507,8 @@ function parsePropertyDefinition(parser, context, key, state, decorators, start,
8505
8507
  if (parser.token === 537079928)
8506
8508
  report(parser, 116);
8507
8509
  value = parsePrimaryExpression(parser, context | 16384, 2, 0, 1, 0, 0, 1, tokenPos, linePos, colPos);
8508
- if ((parser.token & 1073741824) !== 1073741824) {
8510
+ if ((parser.token & 1073741824) !== 1073741824 ||
8511
+ (parser.token & 4194304) === 4194304) {
8509
8512
  value = parseMemberOrUpdateExpression(parser, context | 16384, value, 0, 0, tokenPos, linePos, colPos);
8510
8513
  value = parseAssignmentExpression(parser, context | 16384, 0, 0, tokenPos, linePos, colPos, value);
8511
8514
  if (parser.token === 18) {
@@ -8814,7 +8817,7 @@ var estree = /*#__PURE__*/Object.freeze({
8814
8817
  __proto__: null
8815
8818
  });
8816
8819
 
8817
- var version$1 = "4.3.6";
8820
+ var version$1 = "4.3.8";
8818
8821
 
8819
8822
  const version = version$1;
8820
8823
  function parseScript(source, options) {