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 704ce1a commit 425828cCopy full SHA for 425828c
napi-inl.h
@@ -3244,7 +3244,7 @@ inline void Error::ThrowAsJavaScriptException() const {
3244
3245
status = napi_throw(_env, Value());
3246
3247
-#ifdef NAPI_EXPERIMENTAL
+#if (NAPI_VERSION >= 10)
3248
napi_status expected_failure_mode = napi_cannot_run_js;
3249
#else
3250
napi_status expected_failure_mode = napi_pending_exception;
0 commit comments