meriyah 4.4.2 → 4.4.3

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.
@@ -6140,8 +6140,9 @@ System.register('meriyah', [], (function (exports) {
6140
6140
  case 67174411: {
6141
6141
  if ((context & 524288) === 0)
6142
6142
  report(parser, 26);
6143
- if (context & 16384)
6143
+ if (context & 16384 && !(context & 33554432)) {
6144
6144
  report(parser, 27);
6145
+ }
6145
6146
  parser.assignable = 2;
6146
6147
  break;
6147
6148
  }
@@ -6149,8 +6150,9 @@ System.register('meriyah', [], (function (exports) {
6149
6150
  case 67108877: {
6150
6151
  if ((context & 262144) === 0)
6151
6152
  report(parser, 27);
6152
- if (context & 16384)
6153
+ if (context & 16384 && !(context & 33554432)) {
6153
6154
  report(parser, 27);
6155
+ }
6154
6156
  parser.assignable = 1;
6155
6157
  break;
6156
6158
  }
@@ -6185,6 +6187,9 @@ System.register('meriyah', [], (function (exports) {
6185
6187
  switch (parser.token) {
6186
6188
  case 67108877: {
6187
6189
  nextToken(parser, (context | 1073741824 | 8192) ^ 8192);
6190
+ if (context & 16384 && parser.token === 131 && parser.tokenValue === 'super') {
6191
+ report(parser, 27);
6192
+ }
6188
6193
  parser.assignable = 1;
6189
6194
  const property = parsePropertyOrPrivatePropertyName(parser, context | 65536);
6190
6195
  expr = finishNode(parser, context, start, line, column, {
@@ -7868,7 +7873,7 @@ System.register('meriyah', [], (function (exports) {
7868
7873
  reportScopeError(scope.scopeError);
7869
7874
  }
7870
7875
  if (expression) {
7871
- body = parseExpression(parser, context, 1, 0, 0, parser.tokenPos, parser.linePos, parser.colPos);
7876
+ body = parseExpression(parser, context & 16384 ? context | 33554432 : context, 1, 0, 0, parser.tokenPos, parser.linePos, parser.colPos);
7872
7877
  }
7873
7878
  else {
7874
7879
  if (scope)
@@ -8528,6 +8533,13 @@ System.register('meriyah', [], (function (exports) {
8528
8533
  const { tokenPos, linePos, colPos } = parser;
8529
8534
  if (parser.token === 537079928)
8530
8535
  report(parser, 116);
8536
+ const modifierFlags = (state & 64) === 0
8537
+ ? 31981568
8538
+ : 14680064;
8539
+ context =
8540
+ ((context | modifierFlags) ^ modifierFlags) |
8541
+ ((state & 88) << 18) |
8542
+ 100925440;
8531
8543
  value = parsePrimaryExpression(parser, context | 16384, 2, 0, 1, 0, 0, 1, tokenPos, linePos, colPos);
8532
8544
  if ((parser.token & 1073741824) !== 1073741824 ||
8533
8545
  (parser.token & 4194304) === 4194304) {
@@ -8840,7 +8852,7 @@ System.register('meriyah', [], (function (exports) {
8840
8852
  });
8841
8853
  exports('ESTree', estree);
8842
8854
 
8843
- var version$1 = "4.4.2";
8855
+ var version$1 = "4.4.3";
8844
8856
 
8845
8857
  const version = exports('version', version$1);
8846
8858
  function parseScript(source, options) {