Skip to content

Allow throwing a SyntaxError #833

@idan-at

Description

@idan-at

Hey,

Relatd to swc-project/swc#2650

I'd like to refine swc error handling and throw a SyntaxError instead of an Error.

I see here that some global JS errors are supported, but not SyntaxErrorr.

Any objections to support it?

If you're fine with adding it, I can contribute.

EDIT: I see napi doesn't have an API for that :( Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions