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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [4.4.3](https://github.com/meriyah/meriyah/compare/v4.4.2...v4.4.3) (2024-05-23)
2
+
3
+
4
+
1
5
  ## [4.4.2](https://github.com/meriyah/meriyah/compare/v4.4.1...v4.4.2) (2024-04-03)
2
6
 
3
7
 
@@ -6131,8 +6131,9 @@ define(['exports'], (function (exports) { 'use strict';
6131
6131
  case 67174411: {
6132
6132
  if ((context & 524288) === 0)
6133
6133
  report(parser, 26);
6134
- if (context & 16384)
6134
+ if (context & 16384 && !(context & 33554432)) {
6135
6135
  report(parser, 27);
6136
+ }
6136
6137
  parser.assignable = 2;
6137
6138
  break;
6138
6139
  }
@@ -6140,8 +6141,9 @@ define(['exports'], (function (exports) { 'use strict';
6140
6141
  case 67108877: {
6141
6142
  if ((context & 262144) === 0)
6142
6143
  report(parser, 27);
6143
- if (context & 16384)
6144
+ if (context & 16384 && !(context & 33554432)) {
6144
6145
  report(parser, 27);
6146
+ }
6145
6147
  parser.assignable = 1;
6146
6148
  break;
6147
6149
  }
@@ -6176,6 +6178,9 @@ define(['exports'], (function (exports) { 'use strict';
6176
6178
  switch (parser.token) {
6177
6179
  case 67108877: {
6178
6180
  nextToken(parser, (context | 1073741824 | 8192) ^ 8192);
6181
+ if (context & 16384 && parser.token === 131 && parser.tokenValue === 'super') {
6182
+ report(parser, 27);
6183
+ }
6179
6184
  parser.assignable = 1;
6180
6185
  const property = parsePropertyOrPrivatePropertyName(parser, context | 65536);
6181
6186
  expr = finishNode(parser, context, start, line, column, {
@@ -7859,7 +7864,7 @@ define(['exports'], (function (exports) { 'use strict';
7859
7864
  reportScopeError(scope.scopeError);
7860
7865
  }
7861
7866
  if (expression) {
7862
- body = parseExpression(parser, context, 1, 0, 0, parser.tokenPos, parser.linePos, parser.colPos);
7867
+ body = parseExpression(parser, context & 16384 ? context | 33554432 : context, 1, 0, 0, parser.tokenPos, parser.linePos, parser.colPos);
7863
7868
  }
7864
7869
  else {
7865
7870
  if (scope)
@@ -8519,6 +8524,13 @@ define(['exports'], (function (exports) { 'use strict';
8519
8524
  const { tokenPos, linePos, colPos } = parser;
8520
8525
  if (parser.token === 537079928)
8521
8526
  report(parser, 116);
8527
+ const modifierFlags = (state & 64) === 0
8528
+ ? 31981568
8529
+ : 14680064;
8530
+ context =
8531
+ ((context | modifierFlags) ^ modifierFlags) |
8532
+ ((state & 88) << 18) |
8533
+ 100925440;
8522
8534
  value = parsePrimaryExpression(parser, context | 16384, 2, 0, 1, 0, 0, 1, tokenPos, linePos, colPos);
8523
8535
  if ((parser.token & 1073741824) !== 1073741824 ||
8524
8536
  (parser.token & 4194304) === 4194304) {
@@ -8830,7 +8842,7 @@ define(['exports'], (function (exports) { 'use strict';
8830
8842
  __proto__: null
8831
8843
  });
8832
8844
 
8833
- var version$1 = "4.4.2";
8845
+ var version$1 = "4.4.3";
8834
8846
 
8835
8847
  const version = version$1;
8836
8848
  function parseScript(source, options) {