meriyah 6.0.5 → 6.1.0

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +41 -11
  2. package/README.md +7 -10
  3. package/dist/meriyah.cjs +278 -300
  4. package/dist/meriyah.min.mjs +1 -1
  5. package/dist/meriyah.mjs +279 -300
  6. package/dist/meriyah.umd.js +278 -300
  7. package/dist/meriyah.umd.min.js +1 -1
  8. package/dist/{src → types}/chars.d.ts +0 -1
  9. package/dist/{src → types}/common.d.ts +2 -3
  10. package/dist/{src → types}/errors.d.ts +4 -5
  11. package/dist/{src → types}/estree.d.ts +16 -18
  12. package/dist/{src → types}/lexer/charClassifier.d.ts +0 -1
  13. package/dist/{src → types}/lexer/comments.d.ts +1 -2
  14. package/dist/{src → types}/lexer/common.d.ts +1 -2
  15. package/dist/{src → types}/lexer/decodeHTML.d.ts +0 -1
  16. package/dist/{src → types}/lexer/identifier.d.ts +1 -2
  17. package/dist/{src → types}/lexer/index.d.ts +3 -4
  18. package/dist/{src → types}/lexer/jsx.d.ts +1 -2
  19. package/dist/{src → types}/lexer/numeric.d.ts +1 -2
  20. package/dist/{src → types}/lexer/regexp.d.ts +1 -2
  21. package/dist/{src → types}/lexer/scan.d.ts +1 -2
  22. package/dist/{src → types}/lexer/string.d.ts +1 -2
  23. package/dist/{src → types}/lexer/template.d.ts +1 -2
  24. package/dist/{src → types}/meriyah.d.ts +7 -7
  25. package/dist/{src → types}/parser.d.ts +6 -7
  26. package/dist/{src → types}/token.d.ts +8 -9
  27. package/dist/types/unicode.d.ts +3 -0
  28. package/package.json +34 -33
  29. package/dist/src/chars.d.ts.map +0 -1
  30. package/dist/src/common.d.ts.map +0 -1
  31. package/dist/src/errors.d.ts.map +0 -1
  32. package/dist/src/estree.d.ts.map +0 -1
  33. package/dist/src/lexer/charClassifier.d.ts.map +0 -1
  34. package/dist/src/lexer/comments.d.ts.map +0 -1
  35. package/dist/src/lexer/common.d.ts.map +0 -1
  36. package/dist/src/lexer/decodeHTML.d.ts.map +0 -1
  37. package/dist/src/lexer/identifier.d.ts.map +0 -1
  38. package/dist/src/lexer/index.d.ts.map +0 -1
  39. package/dist/src/lexer/jsx.d.ts.map +0 -1
  40. package/dist/src/lexer/numeric.d.ts.map +0 -1
  41. package/dist/src/lexer/regexp.d.ts.map +0 -1
  42. package/dist/src/lexer/scan.d.ts.map +0 -1
  43. package/dist/src/lexer/string.d.ts.map +0 -1
  44. package/dist/src/lexer/template.d.ts.map +0 -1
  45. package/dist/src/meriyah.d.ts.map +0 -1
  46. package/dist/src/parser.d.ts.map +0 -1
  47. package/dist/src/token.d.ts.map +0 -1
  48. package/dist/src/unicode.d.ts +0 -6
  49. package/dist/src/unicode.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,33 @@
1
+ # [6.1.0](https://github.com/meriyah/meriyah/compare/v6.0.6...v6.1.0) (2025-06-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **parser:** `attributes` on `{ExportAll,ExportNamed,Import}Declaration` is now always an array ([#423](https://github.com/meriyah/meriyah/issues/423)) ([30ea976](https://github.com/meriyah/meriyah/commit/30ea9763596050690e342257e19bdc625a0c38c8))
7
+ * **parser:** add missing `generator` property to `ArrowFunctionExpression` ([#424](https://github.com/meriyah/meriyah/issues/424)) ([2fe6b54](https://github.com/meriyah/meriyah/commit/2fe6b54bebe40835d15ac505a210d17cb11dc467))
8
+ * **parser:** fix `bigint` property on `BigintLiteral` ([#422](https://github.com/meriyah/meriyah/issues/422)) ([ad1922d](https://github.com/meriyah/meriyah/commit/ad1922de74ad5f8f2ab63d5e1ee809cce6c0572b))
9
+ * **parser:** fix location of `StaticBlock` ([#434](https://github.com/meriyah/meriyah/issues/434)) ([2b9e923](https://github.com/meriyah/meriyah/commit/2b9e92333088676424234a840ee51ef5f173d959))
10
+ * preserve nested `ParenthesizedExpression` ([#432](https://github.com/meriyah/meriyah/issues/432)) ([ae6cae5](https://github.com/meriyah/meriyah/commit/ae6cae5b1bb049408c4bf87555ad3cecb2841f0c))
11
+ * remove `ESTree` export ([#398](https://github.com/meriyah/meriyah/issues/398)) ([49a96ff](https://github.com/meriyah/meriyah/commit/49a96ffcceda07018c927b81b3025fa3c8ddb16d))
12
+
13
+
14
+ ### Features
15
+
16
+ * add `module-sync` condition ([#384](https://github.com/meriyah/meriyah/issues/384)) ([dc4a23e](https://github.com/meriyah/meriyah/commit/dc4a23e5f77ca0294eef7da0dc7a70f3858dfc7d))
17
+ * **parser:** move "Import Attributes" out of "next" option ([#430](https://github.com/meriyah/meriyah/issues/430)) ([c5a87fd](https://github.com/meriyah/meriyah/commit/c5a87fdb7987e37531bde77623f8865028db5958))
18
+ * remove location information from `ParseError.description` ([#390](https://github.com/meriyah/meriyah/issues/390)) ([2729651](https://github.com/meriyah/meriyah/commit/2729651f8fd8a740cf3d76eab87a679a4394a5e7))
19
+
20
+
21
+
22
+ ## [6.0.6](https://github.com/meriyah/meriyah/compare/v6.0.5...v6.0.6) (2025-04-04)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **parser:** get/set/from/of are allowed as identifiers ([#377](https://github.com/meriyah/meriyah/issues/377)) ([3ef007f](https://github.com/meriyah/meriyah/commit/3ef007f5952d05a4f82be990282b2d52cfb962f4))
28
+
29
+
30
+
1
31
  ## [6.0.5](https://github.com/meriyah/meriyah/compare/v6.0.4...v6.0.5) (2025-01-10)
2
32
 
3
33
 
@@ -60,12 +90,12 @@
60
90
  - **parser:** catch block without catch-binding should have lexical scope ([db7b3ae](https://github.com/meriyah/meriyah/commit/db7b3aefd8e524ec0de8a332ea5bc016a127c1a3))
61
91
  - **parser:** class is implicit strict mode, but decorator before class is not ([97f4927](https://github.com/meriyah/meriyah/commit/97f492783a4b78f5abb9645620f4b6611684fcd0))
62
92
  - **parser:** class static block disallows "await" as identifier ([4c7f2c3](https://github.com/meriyah/meriyah/commit/4c7f2c388a24f78b4f3b07ea02d08bbe8fbc25ea))
63
- - **parser:** class static block disllows "yield" as idenfifier ([1cb0d65](https://github.com/meriyah/meriyah/commit/1cb0d65a3e7c1f5276b83cf172df424407cb2d96))
93
+ - **parser:** class static block disallows "yield" as identifier ([1cb0d65](https://github.com/meriyah/meriyah/commit/1cb0d65a3e7c1f5276b83cf172df424407cb2d96))
64
94
  - **parser:** class static block has no return statement ([f2b73ee](https://github.com/meriyah/meriyah/commit/f2b73ee4b43b48d49452a5e4f067b58968085659))
65
95
  - **parser:** dot property name can be escaped reserved or future reserved ([eedce98](https://github.com/meriyah/meriyah/commit/eedce98913f6a8f8f16df60e73edc6ac231b2a28))
66
96
  - **parser:** escaped reserved keyword can be used as class element name ([b8e4b3c](https://github.com/meriyah/meriyah/commit/b8e4b3c231d5fc5b57aff1bd2b8a15e2af20b11c))
67
97
  - **parser:** fix an edge case of invalid escape in tagged template ([118fdae](https://github.com/meriyah/meriyah/commit/118fdae97ab0c5640b3ede9cdbc5dc2e0fe05070))
68
- - **parser:** fix annexB behaviour (webcompat) of catch param ([359dcbe](https://github.com/meriyah/meriyah/commit/359dcbe34447a409cf87630188aafb3ce7729abf))
98
+ - **parser:** fix annexB behavior (webcompat) of catch param ([359dcbe](https://github.com/meriyah/meriyah/commit/359dcbe34447a409cf87630188aafb3ce7729abf))
69
99
  - **parser:** fix destruct pattern check ([1e5e394](https://github.com/meriyah/meriyah/commit/1e5e3945b3de6e2eed9e700688442f4bf069268f))
70
100
  - **parser:** fix duplicated function params check ([d0aeda6](https://github.com/meriyah/meriyah/commit/d0aeda6586a67b0ad85d64bfc525762d812f7064))
71
101
  - **parser:** fix duplicated proto check in async() and async() => {} ([66ad497](https://github.com/meriyah/meriyah/commit/66ad4976ae485a6cb4fb880c9fb0fe5334365872))
@@ -79,15 +109,15 @@
79
109
  - **parser:** fix unicode identifier value and check ([36a5ef6](https://github.com/meriyah/meriyah/commit/36a5ef66557e853efd1d63c36b313697903b0560))
80
110
  - **parser:** generator function should not skip duplication error ([d3c953b](https://github.com/meriyah/meriyah/commit/d3c953b2023d513333c8219a762aede08c454a87))
81
111
  - **parser:** in strict mode, escaped future reserved can be used as identifier but not destructible ([762f8c1](https://github.com/meriyah/meriyah/commit/762f8c1fa2282d36985eb068963f9db10533c040))
82
- - **parser:** iteration/switch cannot across class static block boundry ([c832eb6](https://github.com/meriyah/meriyah/commit/c832eb67e5d36edaced0e96d9f6ecb8ac3b6fe8a))
112
+ - **parser:** iteration/switch cannot across class static block boundary ([c832eb6](https://github.com/meriyah/meriyah/commit/c832eb67e5d36edaced0e96d9f6ecb8ac3b6fe8a))
83
113
  - **parser:** new.target is allowed in class static block ([2cec2a9](https://github.com/meriyah/meriyah/commit/2cec2a94868e6e14b80636a542709183c7934463))
84
114
  - **parser:** object literal ({a b}) is invalid ([c069662](https://github.com/meriyah/meriyah/commit/c069662755085a0f85174898eacb299a631ea92f)), closes [#73](https://github.com/meriyah/meriyah/issues/73)
85
115
  - **parser:** oct escape and \8 \9 are not allowed in template string if not tagged ([e12d75d](https://github.com/meriyah/meriyah/commit/e12d75d4845a76e08ac42a087d6142d1ffdbb23c))
86
116
  - **parser:** only class static non-private property cannot be named 'prototype' ([03ef7bc](https://github.com/meriyah/meriyah/commit/03ef7bce129d43d1b17d03bc08a606704f1747d6))
87
117
  - **parser:** partially fix duplicated proto check in parenthesis ([e998b9c](https://github.com/meriyah/meriyah/commit/e998b9c17933b0b178959cd83f336e81dbe491e9))
88
118
  - **parser:** private identifier should work in optional chaining ([f22f7ad](https://github.com/meriyah/meriyah/commit/f22f7ada24bc0755d9717fca4a9f5e95a31a3716))
89
- - **paser:** fix strict mode check for arrow function ([4ca184a](https://github.com/meriyah/meriyah/commit/4ca184a0e2ee369b959d2d514c9d614278dc7863))
90
- - **paser:** private identifier cannot be accessed on super ([15d679d](https://github.com/meriyah/meriyah/commit/15d679df1a44de770b42ab872808f79ea95457bd))
119
+ - **parser:** fix strict mode check for arrow function ([4ca184a](https://github.com/meriyah/meriyah/commit/4ca184a0e2ee369b959d2d514c9d614278dc7863))
120
+ - **parser:** private identifier cannot be accessed on super ([15d679d](https://github.com/meriyah/meriyah/commit/15d679df1a44de770b42ab872808f79ea95457bd))
91
121
  - **scanner:** fix value for huge BigInt ([a09b497](https://github.com/meriyah/meriyah/commit/a09b497d4085bb491515ab50f450f92e4feb6014))
92
122
 
93
123
  ### chore
@@ -228,7 +258,7 @@
228
258
  - **lexer:** fix wrong error when using regex flag s together with m or y ([d757c6b](https://github.com/meriyah/meriyah/commit/d757c6b20ae4f6f4e55a77179726db36cf2bd50b)), closes [#202](https://github.com/meriyah/meriyah/issues/202)
229
259
  - **parser:** allow regular expression in JSXExpressionContainer ([a5fcb80](https://github.com/meriyah/meriyah/commit/a5fcb8072084f2961e11e9db24f7b8ac0ecd04a6)), closes [#204](https://github.com/meriyah/meriyah/issues/204)
230
260
  - **parser:** allow top level await in expressions ([37c6361](https://github.com/meriyah/meriyah/commit/37c63613771e5bc6e23b7da2d92e992c60dafc5a)), closes [#212](https://github.com/meriyah/meriyah/issues/212)
231
- - **parser:** fix wrong starting loc for any non-trival expression in return statement ([7063af5](https://github.com/meriyah/meriyah/commit/7063af55b2c5d6d370fdf6480b87b70387c707fe)), closes [#207](https://github.com/meriyah/meriyah/issues/207)
261
+ - **parser:** fix wrong starting loc for any non-trivial expression in return statement ([7063af5](https://github.com/meriyah/meriyah/commit/7063af55b2c5d6d370fdf6480b87b70387c707fe)), closes [#207](https://github.com/meriyah/meriyah/issues/207)
232
262
  - **parser:** super call should be allowed in private method ([6de707a](https://github.com/meriyah/meriyah/commit/6de707a0efb3053767deaa36b1ed6979b0d3f873)), closes [#203](https://github.com/meriyah/meriyah/issues/203)
233
263
 
234
264
  # [4.2.0](https://github.com/meriyah/meriyah/compare/v4.1.5...v4.2.0) (2021-07-11)
@@ -431,7 +461,7 @@
431
461
  - **all:** fixed issue with TS bundle 'const enum'. Values out of order and tokens got wrong values ([4ed317c](https://github.com/meriyah/meriyah/commit/4ed317cdeb4ee649e818c30212e448f331fc6596))
432
462
  - **all:** Improved ESTree compat ([4192641](https://github.com/meriyah/meriyah/commit/4192641c1ad45c4989965a6ee9ca81d92c6891ca))
433
463
  - **all:** used logical names to avoid confusions ([6f25b7b](https://github.com/meriyah/meriyah/commit/6f25b7b4fde7d35cb3ec84935dc8e8bbb6fbb815))
434
- - **chore:** improved line and coloumn tracking - [#46](https://github.com/meriyah/meriyah/issues/46) ([dc2f3be](https://github.com/meriyah/meriyah/commit/dc2f3bef49a32f5a3215522220f2b33f713eb6c3))
464
+ - **chore:** improved line and column tracking - [#46](https://github.com/meriyah/meriyah/issues/46) ([dc2f3be](https://github.com/meriyah/meriyah/commit/dc2f3bef49a32f5a3215522220f2b33f713eb6c3))
435
465
  - **lexer:** dedupe some code ([bc86b42](https://github.com/meriyah/meriyah/commit/bc86b422f3baa1e5e5cb83f2832eebf19f41a7c9))
436
466
  - **lexer:** fixed a optional chaining token bug introduced earlier ([79e8fa3](https://github.com/meriyah/meriyah/commit/79e8fa31c04458ad796653064cd17e9449c875c4))
437
467
  - **lexer:** fixed CRLF issues - [#46](https://github.com/meriyah/meriyah/issues/46) ([43bc755](https://github.com/meriyah/meriyah/commit/43bc7551af1d3b93453ae592c87b113e52f4252d))
@@ -441,7 +471,7 @@
441
471
  - **lexer:** fixed JSX issue break bundled build only and in the REPL ([32f347f](https://github.com/meriyah/meriyah/commit/32f347f5399e37e2ff5d7a009a76acede4145965))
442
472
  - **lexer:** fixed JSX issue in lexer. Caused only the bundled build to break on JSX parsing. ([0bc45af](https://github.com/meriyah/meriyah/commit/0bc45af2e562c1eebede23bf125ecad41c80a914))
443
473
  - **lexer:** fixed loc tracking for jsx and optimized jsx scanning ([708a1a6](https://github.com/meriyah/meriyah/commit/708a1a63374a4fdbbf422028d66b8e35f26a1247))
444
- - **lexer:** fixed potensial issue with BOM ([b380d62](https://github.com/meriyah/meriyah/commit/b380d6275293045808ca62951b3a5334b8536e31))
474
+ - **lexer:** fixed potential issue with BOM ([b380d62](https://github.com/meriyah/meriyah/commit/b380d6275293045808ca62951b3a5334b8536e31))
445
475
  - **lexer:** fixed WS skipping issue ([bf27362](https://github.com/meriyah/meriyah/commit/bf27362f06f15031aaa148f25643a60a941cdbf1))
446
476
  - **lexer:** fixed ZWJ issue in identifierPart validation ([3708214](https://github.com/meriyah/meriyah/commit/3708214121e8de4d74560755ed2b6fa673755f70))
447
477
  - **lexer:** improved identifier scanning ([bb65cd7](https://github.com/meriyah/meriyah/commit/bb65cd744415ed41fe690cb4cd6f298f5049a8f5))
@@ -579,7 +609,7 @@
579
609
  - **parser:** improved error reporting for duplicate bindings ([0483d25](https://github.com/meriyah/meriyah/commit/0483d25f3794f0b8d339f1e920d036b443e0eaca))
580
610
  - **parser:** improved module code parsing ([9ecef95](https://github.com/meriyah/meriyah/commit/9ecef95779b2de807bc54e59e8389dd30b387008))
581
611
  - **parser:** improved nullish coalescing performance ([83cbdd5](https://github.com/meriyah/meriyah/commit/83cbdd54323e467d7dfb626fd18646aa4f366ecf))
582
- - **parser:** improved optional chaing implementation ([c8532d9](https://github.com/meriyah/meriyah/commit/c8532d9a95fd611fe902771fe0a07eb7d5681b27))
612
+ - **parser:** improved optional chaining implementation ([c8532d9](https://github.com/meriyah/meriyah/commit/c8532d9a95fd611fe902771fe0a07eb7d5681b27))
583
613
  - **parser:** improved optional chaining implementation ([90c139c](https://github.com/meriyah/meriyah/commit/90c139ce36af5fdd2500e365f23ed305445bfdec))
584
614
  - **parser:** improved optional chaining implementation ([2766dd9](https://github.com/meriyah/meriyah/commit/2766dd9303a3775a09492f4ca9bfd68015b0dd0d))
585
615
  - **parser:** improved performance - create less lexical scopes ([8485cbb](https://github.com/meriyah/meriyah/commit/8485cbb9d6a75a2a4d9cbbfaef1b29278bc94ac7))
@@ -608,7 +638,7 @@
608
638
  - **parser:** reduced branching and simplified for parenthesized arrow head & async arrow ([25a5bff](https://github.com/meriyah/meriyah/commit/25a5bffc4364f0d26f5903d55d4985d76e887c2b))
609
639
  - **parser:** refactored and simplified location tracking ([0899ad3](https://github.com/meriyah/meriyah/commit/0899ad37fab3cec42545727f7b79b77fa7d55c66))
610
640
  - **parser:** Refactoring SyntaxError messages ([66098ea](https://github.com/meriyah/meriyah/commit/66098ea443b91ae12b15e55a7d1577f9a2b81f66))
611
- - **parser:** removed reduntant empty binding validations ([cf98ab5](https://github.com/meriyah/meriyah/commit/cf98ab53a12915dfdc84e56e6ae49d7276643170))
641
+ - **parser:** removed redundant empty binding validations ([cf98ab5](https://github.com/meriyah/meriyah/commit/cf98ab53a12915dfdc84e56e6ae49d7276643170))
612
642
  - **parser:** removed some unused code and simplified a few things ([4ffe12d](https://github.com/meriyah/meriyah/commit/4ffe12d597367dd75c45651558b406e390617730))
613
643
  - **parser:** removed some useless code ([597eaf2](https://github.com/meriyah/meriyah/commit/597eaf25d36ab4971a07df391321ec97fb0c911f))
614
644
  - **parser:** removed unnecessary func args ([6c44bb7](https://github.com/meriyah/meriyah/commit/6c44bb75d86ff269f5bfcf61c6bf7d5ebe43b3b6))
@@ -648,7 +678,7 @@
648
678
 
649
679
  - **all:** added benchmark ([8a525b3](https://github.com/meriyah/meriyah/commit/8a525b36e290d4d6f8c8dd0dafc55ea77c6dec3e))
650
680
  - **all:** Emit errors in standard format for compilers ([7f83f6a](https://github.com/meriyah/meriyah/commit/7f83f6a368c1b0fdd4d724f075887f140577bd0f))
651
- - **lexer:** added lexer souce code ([ade6e8f](https://github.com/meriyah/meriyah/commit/ade6e8f757beb2220783e7ab3bc6615d90bcdc91))
681
+ - **lexer:** added lexer source code ([ade6e8f](https://github.com/meriyah/meriyah/commit/ade6e8f757beb2220783e7ab3bc6615d90bcdc91))
652
682
  - **lexer:** implement numeric literal scanning ([8ba7461](https://github.com/meriyah/meriyah/commit/8ba7461e9a2cfbafbf180da1792070b641c76e0a))
653
683
  - **parser:** enable line/column location information to each node ([75c43c7](https://github.com/meriyah/meriyah/commit/75c43c7005a8fc69fbbbf283556dec1c67ae354b))
654
684
  - **parser:** 'export' '\*' 'as' IdentifierName 'from' ModuleSpecifier ';' ([01db03c](https://github.com/meriyah/meriyah/commit/01db03c08816ffdb092ebd890130bfd189f5e3eb))
package/README.md CHANGED
@@ -4,8 +4,8 @@
4
4
 
5
5
  <p align="center">
6
6
  <a href="https://www.npmjs.com/package/meriyah"><img src="https://img.shields.io/npm/v/meriyah.svg?style=flat-square" alt="Meriyah NPM"/></a>
7
- <a href="https://github.com/meriyah/meriyah/actions/workflows/node.js.yml"><img src="https://github.com/meriyah/meriyah/actions/workflows/node.js.yml/badge.svg" alt="Node.js CI"/></a>
8
- <a href="https://github.com/meriyah/meriyah/blob/master/LICENSE.md"><img src="https://img.shields.io/github/license/meriyah/meriyah.svg" alt="License" /></a>
7
+ <a href="https://github.com/meriyah/meriyah/actions/workflows/node.js.yml?query=branch%3Amain"><img src="https://img.shields.io/github/actions/workflow/status/meriyah/meriyah/node.js.yml?branch=main&label=test&style=flat-square" alt="Node.js CI"/></a>
8
+ <a href="https://github.com/meriyah/meriyah/blob/master/LICENSE.md"><img src="https://img.shields.io/github/license/meriyah/meriyah.svg?style=flat-square" alt="License" /></a>
9
9
  </p>
10
10
 
11
11
  <br>
@@ -16,7 +16,7 @@
16
16
  ## Features
17
17
 
18
18
  - Conforms to the standard ECMAScript® 2024 (ECMA-262 15th Edition) language specification
19
- - Except RegExp duplicate named groups (See [RegExp support](#regexp-support))
19
+ - See [RegExp support](#regexp-support)
20
20
  - Support some TC39 stage 3 proposals via option "next"
21
21
  - Support for additional ECMAScript features for Web Browsers (Annex B)
22
22
  - JSX support via option "jsx"
@@ -33,14 +33,12 @@
33
33
  These features need to be enabled with the `next` option.
34
34
 
35
35
  - [Decorators](https://github.com/tc39/proposal-decorators)
36
- - [Import Attributes](https://github.com/tc39/proposal-import-attributes)
37
36
  - [JSON Modules](https://github.com/tc39/proposal-json-modules)
38
37
 
39
38
  ### Not yet supported stage 3 features:
40
39
 
41
40
  - [Explicit resource management](https://github.com/tc39/proposal-explicit-resource-management)
42
41
  - [Source phase import](https://github.com/tc39/proposal-source-phase-imports)
43
- - [RegExp modifiers](https://github.com/tc39/proposal-regexp-modifiers) (See [RegExp support](#regexp-support))
44
42
 
45
43
  ## RegExp support
46
44
 
@@ -48,11 +46,10 @@ Meriyah doesn't parse RegExp internal syntax, ESTree spec didn't require interna
48
46
  does use JavaScript runtime to validate the RegExp literal. That means Meriyah's RegExp support is only as good
49
47
  as JavaScript runtime's RegExp support.
50
48
 
51
- As of Auguest 2024, some latest RegExp features are not supported due to missing implementation in general
52
- JavaScript runtime.
49
+ As of May 2025, some latest RegExp features requires Node.js>=24.
53
50
 
54
- - [RegExp modifiers](https://github.com/tc39/proposal-regexp-modifiers) (stage 3) is not supported
55
- - [RegExp duplicate named groups](https://github.com/tc39/proposal-duplicate-named-capturing-groups) is not supported
51
+ - [RegExp modifiers](https://github.com/tc39/proposal-regexp-modifiers)
52
+ - [RegExp duplicate named groups](https://github.com/tc39/proposal-duplicate-named-capturing-groups)
56
53
 
57
54
  In addition, RegExp v flag (unicodeSets) only works on Nodejs v20+ and latest browsers.
58
55
 
@@ -105,7 +102,7 @@ The available options:
105
102
  // Allows comment extraction. Accepts either a function or array
106
103
  onComment: [];
107
104
 
108
- // Allows detection of automatic semicolon insertion. Accepts a callback function that will be passed the charater offset where the semicolon was inserted
105
+ // Allows detection of automatic semicolon insertion. Accepts a callback function that will be passed the character offset where the semicolon was inserted
109
106
  onInsertedSemicolon: (pos) => {};
110
107
 
111
108
  // Allows token extraction. Accepts either a function or array