Skip to content

Adding napi_create_syntax_error #1099

Closed
@idan-at

Description

@idan-at

Hi,

Some of the known js tooling (webpack and babel for example) are re-written in other languages (esbuild in go, swc and parcel in rust)

Because of that, throwing a syntax error from napi makes sense.
unfortunately, the API does not exist at this moment (although other native errors can be thrown, like type error and range error)

what do you think about adding it?

If it’s accepted, I’d be happy to contribute (if you can point me)

Thanks!

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