meriyah 6.0.0 → 6.0.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.mjs CHANGED
@@ -1185,10 +1185,8 @@ function scanTemplate(parser, context) {
1185
1185
  }
1186
1186
  }
1187
1187
  }
1188
- else {
1189
- if (parser.index < parser.end &&
1190
- char === 13 &&
1191
- parser.source.charCodeAt(parser.index) === 10) {
1188
+ else if (parser.index < parser.end) {
1189
+ if (char === 13 && parser.source.charCodeAt(parser.index) === 10) {
1192
1190
  ret += String.fromCodePoint(char);
1193
1191
  parser.currentChar = parser.source.charCodeAt(++parser.index);
1194
1192
  }
@@ -1516,8 +1514,8 @@ const descKeywordTable = Object.create(null, {
1516
1514
  eval: { value: 537079926 },
1517
1515
  as: { value: 77932 },
1518
1516
  arguments: { value: 537079927 },
1519
- target: { value: 143493 },
1520
- meta: { value: 143494 },
1517
+ target: { value: 209029 },
1518
+ meta: { value: 209030 },
1521
1519
  accessor: { value: 12402 },
1522
1520
  });
1523
1521
 
@@ -1596,7 +1594,7 @@ function scanIdentifierSlowCase(parser, context, hasEscape, isValidAsKeyword) {
1596
1594
  return -2147483528;
1597
1595
  }
1598
1596
  }
1599
- return 143482 | -2147483648;
1597
+ return 209018 | -2147483648;
1600
1598
  }
1601
1599
  if (context & 67108864 &&
1602
1600
  (context & 2048) === 0 &&
@@ -1605,13 +1603,13 @@ function scanIdentifierSlowCase(parser, context, hasEscape, isValidAsKeyword) {
1605
1603
  }
1606
1604
  if (token === 241771) {
1607
1605
  return context & 67108864
1608
- ? 143482 | -2147483648
1606
+ ? 209018 | -2147483648
1609
1607
  : context & 262144
1610
1608
  ? -2147483528
1611
1609
  : token | -2147483648;
1612
1610
  }
1613
1611
  if (token === 209005) {
1614
- return 143482 | -2147483648;
1612
+ return 209018 | -2147483648;
1615
1613
  }
1616
1614
  if ((token & 36864) === 36864) {
1617
1615
  return token | 12288 | -2147483648;
@@ -6617,7 +6615,7 @@ function parseImportMetaExpression(parser, context, meta, start, line, column) {
6617
6615
  report(parser, 169);
6618
6616
  nextToken(parser, context);
6619
6617
  const token = parser.getToken();
6620
- if (token !== 143494 && parser.tokenValue !== 'meta') {
6618
+ if (token !== 209030 && parser.tokenValue !== 'meta') {
6621
6619
  report(parser, 174);
6622
6620
  }
6623
6621
  else if (token & -2147483648) {
@@ -8345,7 +8343,7 @@ function parseNewExpression(parser, context, privateScope, inGroup, start, line,
8345
8343
  const id = parseIdentifier(parser, context | 8192);
8346
8344
  const { tokenIndex, tokenLine, tokenColumn } = parser;
8347
8345
  if (consumeOpt(parser, context, 67108877)) {
8348
- if (context & 16777216 && parser.getToken() === 143493) {
8346
+ if (context & 16777216 && parser.getToken() === 209029) {
8349
8347
  parser.assignable = 2;
8350
8348
  return parseMetaProperty(parser, context, id, start, line, column);
8351
8349
  }
@@ -9227,7 +9225,7 @@ var estree = /*#__PURE__*/Object.freeze({
9227
9225
  __proto__: null
9228
9226
  });
9229
9227
 
9230
- var version = "6.0.0";
9228
+ var version = "6.0.2";
9231
9229
 
9232
9230
  function parseScript(source, options) {
9233
9231
  return parseSource(source, options, 0);
@@ -1191,10 +1191,8 @@
1191
1191
  }
1192
1192
  }
1193
1193
  }
1194
- else {
1195
- if (parser.index < parser.end &&
1196
- char === 13 &&
1197
- parser.source.charCodeAt(parser.index) === 10) {
1194
+ else if (parser.index < parser.end) {
1195
+ if (char === 13 && parser.source.charCodeAt(parser.index) === 10) {
1198
1196
  ret += String.fromCodePoint(char);
1199
1197
  parser.currentChar = parser.source.charCodeAt(++parser.index);
1200
1198
  }
@@ -1522,8 +1520,8 @@
1522
1520
  eval: { value: 537079926 },
1523
1521
  as: { value: 77932 },
1524
1522
  arguments: { value: 537079927 },
1525
- target: { value: 143493 },
1526
- meta: { value: 143494 },
1523
+ target: { value: 209029 },
1524
+ meta: { value: 209030 },
1527
1525
  accessor: { value: 12402 },
1528
1526
  });
1529
1527
 
@@ -1602,7 +1600,7 @@
1602
1600
  return -2147483528;
1603
1601
  }
1604
1602
  }
1605
- return 143482 | -2147483648;
1603
+ return 209018 | -2147483648;
1606
1604
  }
1607
1605
  if (context & 67108864 &&
1608
1606
  (context & 2048) === 0 &&
@@ -1611,13 +1609,13 @@
1611
1609
  }
1612
1610
  if (token === 241771) {
1613
1611
  return context & 67108864
1614
- ? 143482 | -2147483648
1612
+ ? 209018 | -2147483648
1615
1613
  : context & 262144
1616
1614
  ? -2147483528
1617
1615
  : token | -2147483648;
1618
1616
  }
1619
1617
  if (token === 209005) {
1620
- return 143482 | -2147483648;
1618
+ return 209018 | -2147483648;
1621
1619
  }
1622
1620
  if ((token & 36864) === 36864) {
1623
1621
  return token | 12288 | -2147483648;
@@ -6623,7 +6621,7 @@
6623
6621
  report(parser, 169);
6624
6622
  nextToken(parser, context);
6625
6623
  const token = parser.getToken();
6626
- if (token !== 143494 && parser.tokenValue !== 'meta') {
6624
+ if (token !== 209030 && parser.tokenValue !== 'meta') {
6627
6625
  report(parser, 174);
6628
6626
  }
6629
6627
  else if (token & -2147483648) {
@@ -8351,7 +8349,7 @@
8351
8349
  const id = parseIdentifier(parser, context | 8192);
8352
8350
  const { tokenIndex, tokenLine, tokenColumn } = parser;
8353
8351
  if (consumeOpt(parser, context, 67108877)) {
8354
- if (context & 16777216 && parser.getToken() === 143493) {
8352
+ if (context & 16777216 && parser.getToken() === 209029) {
8355
8353
  parser.assignable = 2;
8356
8354
  return parseMetaProperty(parser, context, id, start, line, column);
8357
8355
  }
@@ -9233,7 +9231,7 @@
9233
9231
  __proto__: null
9234
9232
  });
9235
9233
 
9236
- var version = "6.0.0";
9234
+ var version = "6.0.2";
9237
9235
 
9238
9236
  function parseScript(source, options) {
9239
9237
  return parseSource(source, options, 0);