meriyah 4.3.3 → 4.3.5

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,17 @@
1
+ ## [4.3.5](https://github.com/meriyah/meriyah/compare/v4.3.4...v4.3.5) (2023-03-13)
2
+
3
+
4
+
5
+ ## [4.3.4](https://github.com/meriyah/meriyah/compare/v4.3.3...v4.3.4) (2023-02-18)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **parser:** "static" can be used as an identifier in ClassElement ([663937a](https://github.com/meriyah/meriyah/commit/663937af80c00978c7aa0b0a5c8a61bf179608af)), closes [#231](https://github.com/meriyah/meriyah/issues/231)
11
+ * **parser:** fix loc info for JSXSpreadChild ([4a99416](https://github.com/meriyah/meriyah/commit/4a994161328dbcafb535eeadc01d81cc8600a1b0)), closes [#235](https://github.com/meriyah/meriyah/issues/235)
12
+
13
+
14
+
1
15
  ## [4.3.3](https://github.com/meriyah/meriyah/compare/v4.3.2...v4.3.3) (2022-11-12)
2
16
 
3
17
 
@@ -5671,6 +5671,9 @@ define(['exports'], (function (exports) { 'use strict';
5671
5671
  function parseImportCallDeclaration(parser, context, start, line, column) {
5672
5672
  let expr = parseImportExpression(parser, context, 0, start, line, column);
5673
5673
  expr = parseMemberOrUpdateExpression(parser, context, expr, 0, 0, start, line, column);
5674
+ if (parser.token === 18) {
5675
+ expr = parseSequenceExpression(parser, context, 0, start, line, column, expr);
5676
+ }
5674
5677
  return parseExpressionStatement(parser, context, expr, start, line, column);
5675
5678
  }
5676
5679
  function parseExportDeclaration(parser, context, scope) {
@@ -8341,7 +8344,10 @@ define(['exports'], (function (exports) { 'use strict';
8341
8344
  key = parseIdentifier(parser, context, 0);
8342
8345
  switch (token) {
8343
8346
  case 36972:
8344
- if (!isStatic && parser.token !== 67174411) {
8347
+ if (!isStatic &&
8348
+ parser.token !== 67174411 &&
8349
+ (parser.token & 1048576) !== 1048576 &&
8350
+ parser.token !== 1077936157) {
8345
8351
  return parseClassElementList(parser, context, scope, inheritedContext, type, decorators, 1, inGroup, start, line, column);
8346
8352
  }
8347
8353
  break;
@@ -8759,7 +8765,7 @@ define(['exports'], (function (exports) { 'use strict';
8759
8765
  nextToken(parser, context | 32768);
8760
8766
  const { tokenPos, linePos, colPos } = parser;
8761
8767
  if (parser.token === 14)
8762
- return parseJSXSpreadChild(parser, context, tokenPos, linePos, colPos);
8768
+ return parseJSXSpreadChild(parser, context, start, line, column);
8763
8769
  let expression = null;
8764
8770
  if (parser.token === 1074790415) {
8765
8771
  if (isAttr)
@@ -8810,7 +8816,7 @@ define(['exports'], (function (exports) { 'use strict';
8810
8816
  __proto__: null
8811
8817
  });
8812
8818
 
8813
- var version$1 = "4.3.3";
8819
+ var version$1 = "4.3.5";
8814
8820
 
8815
8821
  const version = version$1;
8816
8822
  function parseScript(source, options) {