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.
@@ -8320,6 +8320,7 @@ System.register('meriyah', [], (function (exports) {
8320
8320
  const { tokenPos, linePos, colPos } = parser;
8321
8321
  consume(parser, context | 32768, 2162700);
8322
8322
  context = (context | 134217728) ^ 134217728;
8323
+ let hasConstr = parser.flags & 32;
8323
8324
  parser.flags = (parser.flags | 32) ^ 32;
8324
8325
  const body = [];
8325
8326
  let decorators;
@@ -8340,6 +8341,7 @@ System.register('meriyah', [], (function (exports) {
8340
8341
  body.push(parseClassElementList(parser, context, scope, inheritedContext, kind, decorators, 0, inGroup, parser.tokenPos, parser.linePos, parser.colPos));
8341
8342
  }
8342
8343
  consume(parser, origin & 8 ? context | 32768 : context, 1074790415);
8344
+ parser.flags = (parser.flags & ~32) | hasConstr;
8343
8345
  return finishNode(parser, context, tokenPos, linePos, colPos, {
8344
8346
  type: 'ClassBody',
8345
8347
  body
@@ -8516,7 +8518,8 @@ System.register('meriyah', [], (function (exports) {
8516
8518
  if (parser.token === 537079928)
8517
8519
  report(parser, 116);
8518
8520
  value = parsePrimaryExpression(parser, context | 16384, 2, 0, 1, 0, 0, 1, tokenPos, linePos, colPos);
8519
- if ((parser.token & 1073741824) !== 1073741824) {
8521
+ if ((parser.token & 1073741824) !== 1073741824 ||
8522
+ (parser.token & 4194304) === 4194304) {
8520
8523
  value = parseMemberOrUpdateExpression(parser, context | 16384, value, 0, 0, tokenPos, linePos, colPos);
8521
8524
  value = parseAssignmentExpression(parser, context | 16384, 0, 0, tokenPos, linePos, colPos, value);
8522
8525
  if (parser.token === 18) {
@@ -8826,7 +8829,7 @@ System.register('meriyah', [], (function (exports) {
8826
8829
  });
8827
8830
  exports('ESTree', estree);
8828
8831
 
8829
- var version$1 = "4.3.6";
8832
+ var version$1 = "4.3.8";
8830
8833
 
8831
8834
  const version = exports('version', version$1);
8832
8835
  function parseScript(source, options) {