meriyah 4.4.1 → 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,11 @@
1
+ ## [4.4.3](https://github.com/meriyah/meriyah/compare/v4.4.2...v4.4.3) (2024-05-23)
2
+
3
+
4
+
5
+ ## [4.4.2](https://github.com/meriyah/meriyah/compare/v4.4.1...v4.4.2) (2024-04-03)
6
+
7
+
8
+
1
9
  ## [4.4.1](https://github.com/meriyah/meriyah/compare/v4.4.0...v4.4.1) (2024-03-31)
2
10
 
3
11
 
@@ -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,8 +6178,11 @@ 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
- const property = parsePropertyOrPrivatePropertyName(parser, context);
6185
+ const property = parsePropertyOrPrivatePropertyName(parser, context | 65536);
6181
6186
  expr = finishNode(parser, context, start, line, column, {
6182
6187
  type: 'MemberExpression',
6183
6188
  object: expr,
@@ -6393,7 +6398,7 @@ define(['exports'], (function (exports) { 'use strict';
6393
6398
  case 69271571:
6394
6399
  return parseArrayLiteral(parser, context, canAssign ? 0 : 1, inGroup, start, line, column);
6395
6400
  case 67174411:
6396
- return parseParenthesizedExpression(parser, context, canAssign, 1, 0, start, line, column);
6401
+ return parseParenthesizedExpression(parser, context | 65536, canAssign, 1, 0, start, line, column);
6397
6402
  case 86021:
6398
6403
  case 86022:
6399
6404
  case 86023:
@@ -6556,7 +6561,7 @@ define(['exports'], (function (exports) { 'use strict';
6556
6561
  nextToken(parser, context | 32768);
6557
6562
  const args = [];
6558
6563
  if (parser.token === 16) {
6559
- nextToken(parser, context);
6564
+ nextToken(parser, context | 65536);
6560
6565
  return args;
6561
6566
  }
6562
6567
  while (parser.token !== 16) {
@@ -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.1";
8845
+ var version$1 = "4.4.3";
8834
8846
 
8835
8847
  const version = version$1;
8836
8848
  function parseScript(source, options) {