meriyah 4.3.0 → 4.3.2

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/dist/meriyah.cjs CHANGED
@@ -1472,7 +1472,7 @@ const descKeywordTable = Object.create(null, {
1472
1472
  function scanIdentifier(parser, context, isValidAsKeyword) {
1473
1473
  while (isIdPart[advanceChar(parser)]) { }
1474
1474
  parser.tokenValue = parser.source.slice(parser.tokenPos, parser.index);
1475
- return parser.currentChar !== 92 && parser.currentChar < 0x7e
1475
+ return parser.currentChar !== 92 && parser.currentChar <= 0x7e
1476
1476
  ? descKeywordTable[parser.tokenValue] || 208897
1477
1477
  : scanIdentifierSlowCase(parser, context, 0, isValidAsKeyword);
1478
1478
  }
@@ -1513,14 +1513,28 @@ function scanIdentifierSlowCase(parser, context, hasEscape, isValidAsKeyword) {
1513
1513
  return 208897;
1514
1514
  if (!hasEscape)
1515
1515
  return token;
1516
+ if (token === 209008) {
1517
+ if ((context & (2048 | 4194304)) === 0) {
1518
+ return token;
1519
+ }
1520
+ return 121;
1521
+ }
1516
1522
  if (context & 1024) {
1517
- return token === 209008 && (context & (2048 | 4194304)) === 0
1518
- ? token
1519
- : token === 36972
1520
- ? 122
1521
- : (token & 36864) === 36864
1522
- ? 122
1523
- : 121;
1523
+ if (token === 36972) {
1524
+ return 122;
1525
+ }
1526
+ if ((token & 36864) === 36864) {
1527
+ return 122;
1528
+ }
1529
+ if ((token & 20480) === 20480) {
1530
+ if (context & 1073741824 && (context & 8192) === 0) {
1531
+ return token;
1532
+ }
1533
+ else {
1534
+ return 121;
1535
+ }
1536
+ }
1537
+ return 143483;
1524
1538
  }
1525
1539
  if (context & 1073741824 &&
1526
1540
  (context & 8192) === 0 &&
@@ -1533,13 +1547,13 @@ function scanIdentifierSlowCase(parser, context, hasEscape, isValidAsKeyword) {
1533
1547
  ? 121
1534
1548
  : token;
1535
1549
  }
1536
- return token === 209007 && context & 1073741824
1537
- ? 143483
1538
- : (token & 36864) === 36864
1539
- ? token
1540
- : token === 209008 && (context & 4194304) === 0
1541
- ? token
1542
- : 121;
1550
+ if (token === 209007) {
1551
+ return 143483;
1552
+ }
1553
+ if ((token & 36864) === 36864) {
1554
+ return token;
1555
+ }
1556
+ return 121;
1543
1557
  }
1544
1558
  return 208897;
1545
1559
  }
@@ -8794,7 +8808,7 @@ var estree = /*#__PURE__*/Object.freeze({
8794
8808
  __proto__: null
8795
8809
  });
8796
8810
 
8797
- var version$1 = "4.3.0";
8811
+ var version$1 = "4.3.2";
8798
8812
 
8799
8813
  const version = version$1;
8800
8814
  function parseScript(source, options) {
@@ -1472,7 +1472,7 @@ const descKeywordTable = Object.create(null, {
1472
1472
  function scanIdentifier(parser, context, isValidAsKeyword) {
1473
1473
  while (isIdPart[advanceChar(parser)]) { }
1474
1474
  parser.tokenValue = parser.source.slice(parser.tokenPos, parser.index);
1475
- return parser.currentChar !== 92 && parser.currentChar < 0x7e
1475
+ return parser.currentChar !== 92 && parser.currentChar <= 0x7e
1476
1476
  ? descKeywordTable[parser.tokenValue] || 208897
1477
1477
  : scanIdentifierSlowCase(parser, context, 0, isValidAsKeyword);
1478
1478
  }
@@ -1513,14 +1513,28 @@ function scanIdentifierSlowCase(parser, context, hasEscape, isValidAsKeyword) {
1513
1513
  return 208897;
1514
1514
  if (!hasEscape)
1515
1515
  return token;
1516
+ if (token === 209008) {
1517
+ if ((context & (2048 | 4194304)) === 0) {
1518
+ return token;
1519
+ }
1520
+ return 121;
1521
+ }
1516
1522
  if (context & 1024) {
1517
- return token === 209008 && (context & (2048 | 4194304)) === 0
1518
- ? token
1519
- : token === 36972
1520
- ? 122
1521
- : (token & 36864) === 36864
1522
- ? 122
1523
- : 121;
1523
+ if (token === 36972) {
1524
+ return 122;
1525
+ }
1526
+ if ((token & 36864) === 36864) {
1527
+ return 122;
1528
+ }
1529
+ if ((token & 20480) === 20480) {
1530
+ if (context & 1073741824 && (context & 8192) === 0) {
1531
+ return token;
1532
+ }
1533
+ else {
1534
+ return 121;
1535
+ }
1536
+ }
1537
+ return 143483;
1524
1538
  }
1525
1539
  if (context & 1073741824 &&
1526
1540
  (context & 8192) === 0 &&
@@ -1533,13 +1547,13 @@ function scanIdentifierSlowCase(parser, context, hasEscape, isValidAsKeyword) {
1533
1547
  ? 121
1534
1548
  : token;
1535
1549
  }
1536
- return token === 209007 && context & 1073741824
1537
- ? 143483
1538
- : (token & 36864) === 36864
1539
- ? token
1540
- : token === 209008 && (context & 4194304) === 0
1541
- ? token
1542
- : 121;
1550
+ if (token === 209007) {
1551
+ return 143483;
1552
+ }
1553
+ if ((token & 36864) === 36864) {
1554
+ return token;
1555
+ }
1556
+ return 121;
1543
1557
  }
1544
1558
  return 208897;
1545
1559
  }
@@ -8794,7 +8808,7 @@ var estree = /*#__PURE__*/Object.freeze({
8794
8808
  __proto__: null
8795
8809
  });
8796
8810
 
8797
- var version$1 = "4.3.0";
8811
+ var version$1 = "4.3.2";
8798
8812
 
8799
8813
  const version = version$1;
8800
8814
  function parseScript(source, options) {