Skip to content

meriyah update needed #738

@dgoldstein0

Description

@dgoldstein0

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}}}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions