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.
@@ -6135,8 +6135,9 @@
6135
6135
  case 67174411: {
6136
6136
  if ((context & 524288) === 0)
6137
6137
  report(parser, 26);
6138
- if (context & 16384)
6138
+ if (context & 16384 && !(context & 33554432)) {
6139
6139
  report(parser, 27);
6140
+ }
6140
6141
  parser.assignable = 2;
6141
6142
  break;
6142
6143
  }
@@ -6144,8 +6145,9 @@
6144
6145
  case 67108877: {
6145
6146
  if ((context & 262144) === 0)
6146
6147
  report(parser, 27);
6147
- if (context & 16384)
6148
+ if (context & 16384 && !(context & 33554432)) {
6148
6149
  report(parser, 27);
6150
+ }
6149
6151
  parser.assignable = 1;
6150
6152
  break;
6151
6153
  }
@@ -6180,6 +6182,9 @@
6180
6182
  switch (parser.token) {
6181
6183
  case 67108877: {
6182
6184
  nextToken(parser, (context | 1073741824 | 8192) ^ 8192);
6185
+ if (context & 16384 && parser.token === 131 && parser.tokenValue === 'super') {
6186
+ report(parser, 27);
6187
+ }
6183
6188
  parser.assignable = 1;
6184
6189
  const property = parsePropertyOrPrivatePropertyName(parser, context | 65536);
6185
6190
  expr = finishNode(parser, context, start, line, column, {
@@ -7863,7 +7868,7 @@
7863
7868
  reportScopeError(scope.scopeError);
7864
7869
  }
7865
7870
  if (expression) {
7866
- body = parseExpression(parser, context, 1, 0, 0, parser.tokenPos, parser.linePos, parser.colPos);
7871
+ body = parseExpression(parser, context & 16384 ? context | 33554432 : context, 1, 0, 0, parser.tokenPos, parser.linePos, parser.colPos);
7867
7872
  }
7868
7873
  else {
7869
7874
  if (scope)
@@ -8523,6 +8528,13 @@
8523
8528
  const { tokenPos, linePos, colPos } = parser;
8524
8529
  if (parser.token === 537079928)
8525
8530
  report(parser, 116);
8531
+ const modifierFlags = (state & 64) === 0
8532
+ ? 31981568
8533
+ : 14680064;
8534
+ context =
8535
+ ((context | modifierFlags) ^ modifierFlags) |
8536
+ ((state & 88) << 18) |
8537
+ 100925440;
8526
8538
  value = parsePrimaryExpression(parser, context | 16384, 2, 0, 1, 0, 0, 1, tokenPos, linePos, colPos);
8527
8539
  if ((parser.token & 1073741824) !== 1073741824 ||
8528
8540
  (parser.token & 4194304) === 4194304) {
@@ -8834,7 +8846,7 @@
8834
8846
  __proto__: null
8835
8847
  });
8836
8848
 
8837
- var version$1 = "4.4.2";
8849
+ var version$1 = "4.4.3";
8838
8850
 
8839
8851
  const version = version$1;
8840
8852
  function parseScript(source, options) {