astexplorer icon indicating copy to clipboard operation
astexplorer copied to clipboard

meriyah update needed

Open dgoldstein0 opened this issue 4 months ago • 1 comments

Describe the bug I tried parsing some code with meriyah only for it to fail on some newer syntax. It doesn't fail in my codebase with [email protected] so pretty sure we need a meriyah update.

To Reproduce select meriyah as the parser

code

class  Foo {
  foo = 1;
}

results in a parse error: [2:7]: Expected '('

Expected behavior

should parse without error

Browser (please complete the following information): Chrome 139

astexplorer settings:

  • Selected parser: meriyah
  • Selected transformer (if applicable): none
  • Contents of the local storage key explorerSettingsV1 (code can be removed if you don't want it to be public)

'{"showTransformPanel":false,"parserSettings":{},"parserPerCategory":{"javascript":"meriyah"},"workbench":{"parser":"meriyah","code":"class Foo {\n foo = 1;\n}","keyMap":"default","transform":{"code":"","transformer":null}}}'

dgoldstein0 avatar Aug 26 '25 22:08 dgoldstein0

PS I'm willing to contribute if this change could get deployed in a reasonable time frame

dgoldstein0 avatar Aug 26 '25 22:08 dgoldstein0