Skip to content

[Question] Is it by designed that only Napi::Error can be thrown? #1656

Closed
@neko-para

Description

@neko-para

It seems that currently only Napi::Error have the method ThrowAsJavaScriptException, while the underlying function napi_throw accepts any kinds of value. I've managed to throw an number via napi_throw.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions