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