Skip to content

Commit c3768ac

Browse files
committed
fix: signature mismatch
1 parent 3b85957 commit c3768ac

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/emnapi/src/threadsafe_function.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,7 @@ static napi_value _emnapi_tsfn_finalize_in_callback_scope(napi_env env, napi_cal
210210
}
211211

212212
static void _emnapi_tsfn_finalize(napi_threadsafe_function func) {
213-
napi_handle_scope scope;
214-
_emnapi_open_handle_scope(&scope);
213+
napi_handle_scope scope = _emnapi_open_handle_scope();
215214
if (func->finalize_cb) {
216215
if (emnapi_is_node_binding_available()) {
217216
napi_value resource, cb;

0 commit comments

Comments
 (0)