meriyah 6.0.1 → 6.0.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,21 @@
1
+ ## [6.0.3](https://github.com/meriyah/meriyah/compare/v6.0.2...v6.0.3) (2024-10-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **parser:** fix tagged template parsing when tag has param(s) ([b549ed3](https://github.com/meriyah/meriyah/commit/b549ed39696b694c3c0c2e9220452c3e28538915)), closes [#350](https://github.com/meriyah/meriyah/issues/350)
7
+
8
+
9
+
10
+ ## [6.0.2](https://github.com/meriyah/meriyah/compare/v6.0.1...v6.0.2) (2024-10-01)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **parser:** all identifiers can be start of an expression ([7f800c5](https://github.com/meriyah/meriyah/commit/7f800c5fce86d71f80cb15d3a1ead5fc2d70e8ef)), closes [#342](https://github.com/meriyah/meriyah/issues/342)
16
+
17
+
18
+
1
19
  ## [6.0.1](https://github.com/meriyah/meriyah/compare/v6.0.0...v6.0.1) (2024-09-16)
2
20
 
3
21
 
package/README.md CHANGED
@@ -10,7 +10,8 @@
10
10
 
11
11
  <br>
12
12
 
13
- ## [Demo](https://meriyah.github.io/meriyah)
13
+ [Interactive Playground](https://meriyah.github.io/meriyah)
14
+ [Benchmark](https://meriyah.github.io/meriyah/performance)
14
15
 
15
16
  ## Features
16
17
 
@@ -117,7 +118,7 @@ The available options:
117
118
  lexical: false;
118
119
 
119
120
  // Adds a source attribute in every node’s loc object when the locations option is `true`
120
- source: false;
121
+ source: undefined; // Set to source: 'source-file.js'
121
122
 
122
123
  // Enable React JSX parsing
123
124
  jsx: false;
package/dist/meriyah.cjs CHANGED
@@ -1516,8 +1516,8 @@ const descKeywordTable = Object.create(null, {
1516
1516
  eval: { value: 537079926 },
1517
1517
  as: { value: 77932 },
1518
1518
  arguments: { value: 537079927 },
1519
- target: { value: 143493 },
1520
- meta: { value: 143494 },
1519
+ target: { value: 209029 },
1520
+ meta: { value: 209030 },
1521
1521
  accessor: { value: 12402 },
1522
1522
  });
1523
1523
 
@@ -1596,7 +1596,7 @@ function scanIdentifierSlowCase(parser, context, hasEscape, isValidAsKeyword) {
1596
1596
  return -2147483528;
1597
1597
  }
1598
1598
  }
1599
- return 143482 | -2147483648;
1599
+ return 209018 | -2147483648;
1600
1600
  }
1601
1601
  if (context & 67108864 &&
1602
1602
  (context & 2048) === 0 &&
@@ -1605,13 +1605,13 @@ function scanIdentifierSlowCase(parser, context, hasEscape, isValidAsKeyword) {
1605
1605
  }
1606
1606
  if (token === 241771) {
1607
1607
  return context & 67108864
1608
- ? 143482 | -2147483648
1608
+ ? 209018 | -2147483648
1609
1609
  : context & 262144
1610
1610
  ? -2147483528
1611
1611
  : token | -2147483648;
1612
1612
  }
1613
1613
  if (token === 209005) {
1614
- return 143482 | -2147483648;
1614
+ return 209018 | -2147483648;
1615
1615
  }
1616
1616
  if ((token & 36864) === 36864) {
1617
1617
  return token | 12288 | -2147483648;
@@ -6617,7 +6617,7 @@ function parseImportMetaExpression(parser, context, meta, start, line, column) {
6617
6617
  report(parser, 169);
6618
6618
  nextToken(parser, context);
6619
6619
  const token = parser.getToken();
6620
- if (token !== 143494 && parser.tokenValue !== 'meta') {
6620
+ if (token !== 209030 && parser.tokenValue !== 'meta') {
6621
6621
  report(parser, 174);
6622
6622
  }
6623
6623
  else if (token & -2147483648) {
@@ -6854,7 +6854,7 @@ function parseArguments(parser, context, privateScope, inGroup) {
6854
6854
  if (parser.getToken() === 16)
6855
6855
  break;
6856
6856
  }
6857
- consume(parser, context, 16);
6857
+ consume(parser, context | 16384, 16);
6858
6858
  return args;
6859
6859
  }
6860
6860
  function parseIdentifier(parser, context) {
@@ -8345,7 +8345,7 @@ function parseNewExpression(parser, context, privateScope, inGroup, start, line,
8345
8345
  const id = parseIdentifier(parser, context | 8192);
8346
8346
  const { tokenIndex, tokenLine, tokenColumn } = parser;
8347
8347
  if (consumeOpt(parser, context, 67108877)) {
8348
- if (context & 16777216 && parser.getToken() === 143493) {
8348
+ if (context & 16777216 && parser.getToken() === 209029) {
8349
8349
  parser.assignable = 2;
8350
8350
  return parseMetaProperty(parser, context, id, start, line, column);
8351
8351
  }
@@ -9227,7 +9227,7 @@ var estree = /*#__PURE__*/Object.freeze({
9227
9227
  __proto__: null
9228
9228
  });
9229
9229
 
9230
- var version = "6.0.1";
9230
+ var version = "6.0.3";
9231
9231
 
9232
9232
  function parseScript(source, options) {
9233
9233
  return parseSource(source, options, 0);