meriyah 6.0.3 → 6.0.5

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
@@ -4382,8 +4382,8 @@ function rescanJSXIdentifier(parser) {
4382
4382
  char = advanceChar(parser);
4383
4383
  }
4384
4384
  parser.tokenValue += parser.source.slice(index, parser.index);
4385
+ parser.setToken(208897, true);
4385
4386
  }
4386
- parser.setToken(208897, true);
4387
4387
  return parser.getToken();
4388
4388
  }
4389
4389
 
@@ -5821,7 +5821,6 @@ function parseExportDeclaration(parser, context, scope) {
5821
5821
  let declaration = null;
5822
5822
  let source = null;
5823
5823
  let attributes = null;
5824
- let key;
5825
5824
  if (consumeOpt(parser, context | 8192, 20561)) {
5826
5825
  switch (parser.getToken()) {
5827
5826
  case 86104: {
@@ -5974,10 +5973,6 @@ function parseExportDeclaration(parser, context, scope) {
5974
5973
  nextToken(parser, context);
5975
5974
  if ((parser.flags & 1) === 0 && parser.getToken() === 86104) {
5976
5975
  declaration = parseFunctionDeclaration(parser, context, scope, undefined, 4, 1, 2, 1, tokenIndex, tokenLine, tokenColumn);
5977
- if (scope) {
5978
- key = declaration.id ? declaration.id.name : '';
5979
- declareUnboundVariable(parser, key);
5980
- }
5981
5976
  break;
5982
5977
  }
5983
5978
  }
@@ -9213,6 +9208,9 @@ function parseJSXEmptyExpression(parser, context, start, line, column) {
9213
9208
  });
9214
9209
  }
9215
9210
  function parseJSXIdentifier(parser, context, start, line, column) {
9211
+ if (!(parser.getToken() & 143360)) {
9212
+ report(parser, 30, KeywordDescTable[parser.getToken() & 255]);
9213
+ }
9216
9214
  const { tokenValue } = parser;
9217
9215
  nextToken(parser, context);
9218
9216
  return finishNode(parser, context, start, line, column, {
@@ -9225,7 +9223,7 @@ var estree = /*#__PURE__*/Object.freeze({
9225
9223
  __proto__: null
9226
9224
  });
9227
9225
 
9228
- var version = "6.0.3";
9226
+ var version = "6.0.5";
9229
9227
 
9230
9228
  function parseScript(source, options) {
9231
9229
  return parseSource(source, options, 0);
@@ -4388,8 +4388,8 @@
4388
4388
  char = advanceChar(parser);
4389
4389
  }
4390
4390
  parser.tokenValue += parser.source.slice(index, parser.index);
4391
+ parser.setToken(208897, true);
4391
4392
  }
4392
- parser.setToken(208897, true);
4393
4393
  return parser.getToken();
4394
4394
  }
4395
4395
 
@@ -5827,7 +5827,6 @@
5827
5827
  let declaration = null;
5828
5828
  let source = null;
5829
5829
  let attributes = null;
5830
- let key;
5831
5830
  if (consumeOpt(parser, context | 8192, 20561)) {
5832
5831
  switch (parser.getToken()) {
5833
5832
  case 86104: {
@@ -5980,10 +5979,6 @@
5980
5979
  nextToken(parser, context);
5981
5980
  if ((parser.flags & 1) === 0 && parser.getToken() === 86104) {
5982
5981
  declaration = parseFunctionDeclaration(parser, context, scope, undefined, 4, 1, 2, 1, tokenIndex, tokenLine, tokenColumn);
5983
- if (scope) {
5984
- key = declaration.id ? declaration.id.name : '';
5985
- declareUnboundVariable(parser, key);
5986
- }
5987
5982
  break;
5988
5983
  }
5989
5984
  }
@@ -9219,6 +9214,9 @@
9219
9214
  });
9220
9215
  }
9221
9216
  function parseJSXIdentifier(parser, context, start, line, column) {
9217
+ if (!(parser.getToken() & 143360)) {
9218
+ report(parser, 30, KeywordDescTable[parser.getToken() & 255]);
9219
+ }
9222
9220
  const { tokenValue } = parser;
9223
9221
  nextToken(parser, context);
9224
9222
  return finishNode(parser, context, start, line, column, {
@@ -9231,7 +9229,7 @@
9231
9229
  __proto__: null
9232
9230
  });
9233
9231
 
9234
- var version = "6.0.3";
9232
+ var version = "6.0.5";
9235
9233
 
9236
9234
  function parseScript(source, options) {
9237
9235
  return parseSource(source, options, 0);