Skip to content

Commit

Permalink
fix: node-api version 10 support (#1641)
Browse files Browse the repository at this point in the history
  • Loading branch information
legendecas authored Feb 18, 2025
1 parent 704ce1a commit 932ad15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion napi-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -3244,7 +3244,7 @@ inline void Error::ThrowAsJavaScriptException() const {

status = napi_throw(_env, Value());

#ifdef NAPI_EXPERIMENTAL
#if (NAPI_VERSION >= 10)
napi_status expected_failure_mode = napi_cannot_run_js;
#else
napi_status expected_failure_mode = napi_pending_exception;
Expand Down

0 comments on commit 932ad15

Please sign in to comment.