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.
@@ -1468,7 +1468,7 @@ const descKeywordTable = Object.create(null, {
1468
1468
  function scanIdentifier(parser, context, isValidAsKeyword) {
1469
1469
  while (isIdPart[advanceChar(parser)]) { }
1470
1470
  parser.tokenValue = parser.source.slice(parser.tokenPos, parser.index);
1471
- return parser.currentChar !== 92 && parser.currentChar < 0x7e
1471
+ return parser.currentChar !== 92 && parser.currentChar <= 0x7e
1472
1472
  ? descKeywordTable[parser.tokenValue] || 208897
1473
1473
  : scanIdentifierSlowCase(parser, context, 0, isValidAsKeyword);
1474
1474
  }
@@ -1509,14 +1509,28 @@ function scanIdentifierSlowCase(parser, context, hasEscape, isValidAsKeyword) {
1509
1509
  return 208897;
1510
1510
  if (!hasEscape)
1511
1511
  return token;
1512
+ if (token === 209008) {
1513
+ if ((context & (2048 | 4194304)) === 0) {
1514
+ return token;
1515
+ }
1516
+ return 121;
1517
+ }
1512
1518
  if (context & 1024) {
1513
- return token === 209008 && (context & (2048 | 4194304)) === 0
1514
- ? token
1515
- : token === 36972
1516
- ? 122
1517
- : (token & 36864) === 36864
1518
- ? 122
1519
- : 121;
1519
+ if (token === 36972) {
1520
+ return 122;
1521
+ }
1522
+ if ((token & 36864) === 36864) {
1523
+ return 122;
1524
+ }
1525
+ if ((token & 20480) === 20480) {
1526
+ if (context & 1073741824 && (context & 8192) === 0) {
1527
+ return token;
1528
+ }
1529
+ else {
1530
+ return 121;
1531
+ }
1532
+ }
1533
+ return 143483;
1520
1534
  }
1521
1535
  if (context & 1073741824 &&
1522
1536
  (context & 8192) === 0 &&
@@ -1529,13 +1543,13 @@ function scanIdentifierSlowCase(parser, context, hasEscape, isValidAsKeyword) {
1529
1543
  ? 121
1530
1544
  : token;
1531
1545
  }
1532
- return token === 209007 && context & 1073741824
1533
- ? 143483
1534
- : (token & 36864) === 36864
1535
- ? token
1536
- : token === 209008 && (context & 4194304) === 0
1537
- ? token
1538
- : 121;
1546
+ if (token === 209007) {
1547
+ return 143483;
1548
+ }
1549
+ if ((token & 36864) === 36864) {
1550
+ return token;
1551
+ }
1552
+ return 121;
1539
1553
  }
1540
1554
  return 208897;
1541
1555
  }
@@ -8790,7 +8804,7 @@ var estree = /*#__PURE__*/Object.freeze({
8790
8804
  __proto__: null
8791
8805
  });
8792
8806
 
8793
- var version$1 = "4.3.0";
8807
+ var version$1 = "4.3.2";
8794
8808
 
8795
8809
  const version = version$1;
8796
8810
  function parseScript(source, options) {