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/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## [6.0.5](https://github.com/meriyah/meriyah/compare/v6.0.4...v6.0.5) (2025-01-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **parser:** fix JSX attribute name parse ([#363](https://github.com/meriyah/meriyah/issues/363)) ([b113081](https://github.com/meriyah/meriyah/commit/b11308101b265c0f3db43e5ca1ec7bb541d7a2c6))
7
+
8
+
9
+
10
+ ## [6.0.4](https://github.com/meriyah/meriyah/compare/v6.0.3...v6.0.4) (2025-01-03)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **parser:** fix lexical analysis on export of async func ([#361](https://github.com/meriyah/meriyah/issues/361)) ([8ff271e](https://github.com/meriyah/meriyah/commit/8ff271eb0a9d36725a1274c4b39e2a351964fb8e)), closes [#360](https://github.com/meriyah/meriyah/issues/360)
16
+
17
+
18
+
1
19
  ## [6.0.3](https://github.com/meriyah/meriyah/compare/v6.0.2...v6.0.3) (2024-10-28)
2
20
 
3
21
 
package/dist/meriyah.cjs CHANGED
@@ -4384,8 +4384,8 @@ function rescanJSXIdentifier(parser) {
4384
4384
  char = advanceChar(parser);
4385
4385
  }
4386
4386
  parser.tokenValue += parser.source.slice(index, parser.index);
4387
+ parser.setToken(208897, true);
4387
4388
  }
4388
- parser.setToken(208897, true);
4389
4389
  return parser.getToken();
4390
4390
  }
4391
4391
 
@@ -5823,7 +5823,6 @@ function parseExportDeclaration(parser, context, scope) {
5823
5823
  let declaration = null;
5824
5824
  let source = null;
5825
5825
  let attributes = null;
5826
- let key;
5827
5826
  if (consumeOpt(parser, context | 8192, 20561)) {
5828
5827
  switch (parser.getToken()) {
5829
5828
  case 86104: {
@@ -5976,10 +5975,6 @@ function parseExportDeclaration(parser, context, scope) {
5976
5975
  nextToken(parser, context);
5977
5976
  if ((parser.flags & 1) === 0 && parser.getToken() === 86104) {
5978
5977
  declaration = parseFunctionDeclaration(parser, context, scope, undefined, 4, 1, 2, 1, tokenIndex, tokenLine, tokenColumn);
5979
- if (scope) {
5980
- key = declaration.id ? declaration.id.name : '';
5981
- declareUnboundVariable(parser, key);
5982
- }
5983
5978
  break;
5984
5979
  }
5985
5980
  }
@@ -9215,6 +9210,9 @@ function parseJSXEmptyExpression(parser, context, start, line, column) {
9215
9210
  });
9216
9211
  }
9217
9212
  function parseJSXIdentifier(parser, context, start, line, column) {
9213
+ if (!(parser.getToken() & 143360)) {
9214
+ report(parser, 30, KeywordDescTable[parser.getToken() & 255]);
9215
+ }
9218
9216
  const { tokenValue } = parser;
9219
9217
  nextToken(parser, context);
9220
9218
  return finishNode(parser, context, start, line, column, {
@@ -9227,7 +9225,7 @@ var estree = /*#__PURE__*/Object.freeze({
9227
9225
  __proto__: null
9228
9226
  });
9229
9227
 
9230
- var version = "6.0.3";
9228
+ var version = "6.0.5";
9231
9229
 
9232
9230
  function parseScript(source, options) {
9233
9231
  return parseSource(source, options, 0);