Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
neko-para opened this issue Apr 26, 2025 · 0 comments
Open

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

neko-para opened this issue Apr 26, 2025 · 0 comments

Comments

@neko-para
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Need Triage
Development

No branches or pull requests

1 participant