We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e1e05e commit df4e6b1Copy full SHA for df4e6b1
napi-inl.h
@@ -150,8 +150,9 @@ inline void WrapVoidCallback(napi_env, Callable callback) {
150
}
151
#endif // NODE_ADDON_API_CPP_EXCEPTIONS_ALL
152
#else
153
- // When C++ exceptions are disabled, errors are immediately thrown as JS
154
- // exceptions, so there is no need to catch and rethrow them here.
+ // When C++ exceptions are disabled, there is no need to catch and rethrow C++
+ // exceptions. JS errors should be thrown with
155
+ // `Error::ThrowAsJavaScriptException`.
156
callback();
157
#endif // NODE_ADDON_API_CPP_EXCEPTIONS
158
0 commit comments