meriyah 6.0.4 → 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,12 @@
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
+
1
10
  ## [6.0.4](https://github.com/meriyah/meriyah/compare/v6.0.3...v6.0.4) (2025-01-03)
2
11
 
3
12
 
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
 
@@ -9210,6 +9210,9 @@ function parseJSXEmptyExpression(parser, context, start, line, column) {
9210
9210
  });
9211
9211
  }
9212
9212
  function parseJSXIdentifier(parser, context, start, line, column) {
9213
+ if (!(parser.getToken() & 143360)) {
9214
+ report(parser, 30, KeywordDescTable[parser.getToken() & 255]);
9215
+ }
9213
9216
  const { tokenValue } = parser;
9214
9217
  nextToken(parser, context);
9215
9218
  return finishNode(parser, context, start, line, column, {
@@ -9222,7 +9225,7 @@ var estree = /*#__PURE__*/Object.freeze({
9222
9225
  __proto__: null
9223
9226
  });
9224
9227
 
9225
- var version = "6.0.4";
9228
+ var version = "6.0.5";
9226
9229
 
9227
9230
  function parseScript(source, options) {
9228
9231
  return parseSource(source, options, 0);