You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.