Skip to content

Commit

Permalink
remove node's gc from context
Browse files Browse the repository at this point in the history
  • Loading branch information
angrymouse committed Apr 28, 2024
1 parent a0dc852 commit efb5aca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ napi_value create_context(napi_env env, napi_callback_info info)
}
create_and_associate_thread(ctx);
napi_value externalCtx;
napi_create_external(env, ctx, cleanup_context, nullptr, &externalCtx);
napi_create_external(env, ctx, nullptr, nullptr, &externalCtx);

return externalCtx;
}
Expand Down Expand Up @@ -418,7 +418,7 @@ napi_value swap_contexts(napi_env env, napi_callback_info info)
contextFunctionMap.erase(oldCtx);

napi_value newExternalCtx;
napi_create_external(env, newCtx, cleanup_context, nullptr, &newExternalCtx);
napi_create_external(env, newCtx, nullptr, nullptr, &newExternalCtx);

return newExternalCtx;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "glomium",
"version": "1.1.1",
"version": "1.1.2",
"description": "Duktape bindings for node.js",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit efb5aca

Please sign in to comment.