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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## [4.3.8](https://github.com/meriyah/meriyah/compare/v4.3.7...v4.3.8) (2023-11-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **parser:** assignment as a value for property definition ([5f8f006](https://github.com/meriyah/meriyah/commit/5f8f0061feba7cc46911ef6abd55c7c0ab2bd792))
7
+
8
+
9
+
10
+ ## [4.3.7](https://github.com/meriyah/meriyah/compare/v4.3.6...v4.3.7) (2023-05-12)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **parser:** nested class with constructor should not fail ([c0856b9](https://github.com/meriyah/meriyah/commit/c0856b974dde8c6c5a703186d2847257a64812e2))
16
+
17
+
18
+
1
19
  ## [4.3.6](https://github.com/meriyah/meriyah/compare/v4.3.5...v4.3.6) (2023-05-10)
2
20
 
3
21
 
@@ -8311,6 +8311,7 @@ define(['exports'], (function (exports) { 'use strict';
8311
8311
  const { tokenPos, linePos, colPos } = parser;
8312
8312
  consume(parser, context | 32768, 2162700);
8313
8313
  context = (context | 134217728) ^ 134217728;
8314
+ let hasConstr = parser.flags & 32;
8314
8315
  parser.flags = (parser.flags | 32) ^ 32;
8315
8316
  const body = [];
8316
8317
  let decorators;
@@ -8331,6 +8332,7 @@ define(['exports'], (function (exports) { 'use strict';
8331
8332
  body.push(parseClassElementList(parser, context, scope, inheritedContext, kind, decorators, 0, inGroup, parser.tokenPos, parser.linePos, parser.colPos));
8332
8333
  }
8333
8334
  consume(parser, origin & 8 ? context | 32768 : context, 1074790415);
8335
+ parser.flags = (parser.flags & ~32) | hasConstr;
8334
8336
  return finishNode(parser, context, tokenPos, linePos, colPos, {
8335
8337
  type: 'ClassBody',
8336
8338
  body
@@ -8507,7 +8509,8 @@ define(['exports'], (function (exports) { 'use strict';
8507
8509
  if (parser.token === 537079928)
8508
8510
  report(parser, 116);
8509
8511
  value = parsePrimaryExpression(parser, context | 16384, 2, 0, 1, 0, 0, 1, tokenPos, linePos, colPos);
8510
- if ((parser.token & 1073741824) !== 1073741824) {
8512
+ if ((parser.token & 1073741824) !== 1073741824 ||
8513
+ (parser.token & 4194304) === 4194304) {
8511
8514
  value = parseMemberOrUpdateExpression(parser, context | 16384, value, 0, 0, tokenPos, linePos, colPos);
8512
8515
  value = parseAssignmentExpression(parser, context | 16384, 0, 0, tokenPos, linePos, colPos, value);
8513
8516
  if (parser.token === 18) {
@@ -8816,7 +8819,7 @@ define(['exports'], (function (exports) { 'use strict';
8816
8819
  __proto__: null
8817
8820
  });
8818
8821
 
8819
- var version$1 = "4.3.6";
8822
+ var version$1 = "4.3.8";
8820
8823
 
8821
8824
  const version = version$1;
8822
8825
  function parseScript(source, options) {