Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! n-api: do not require JS Context for napi_async_destroy()
  • Loading branch information
addaleax committed Apr 16, 2019
commit f880b4f9f187032f8c9da0bc4a31e90b5366b6a4
2 changes: 2 additions & 0 deletions test/node-api/test_make_callback/binding.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ static napi_value MakeCallback(napi_env env, napi_callback_info info) {

static void AsyncDestroyCb(napi_env env, void* data, void* hint) {
napi_status status = napi_async_destroy(env, (napi_async_context)data);
// We cannot use NAPI_ASSERT_RETURN_VOID because we need to have a JS stack
// below in order to use exceptions.
assert(status == napi_ok);
Comment thread
addaleax marked this conversation as resolved.
Resolved
}

Expand Down