From efb5aca6ee9f296a376cbf2bae8086e93470fb9b Mon Sep 17 00:00:00 2001 From: Nik Rykov Date: Sun, 28 Apr 2024 04:48:56 +0200 Subject: [PATCH] remove node's gc from context --- bindings.cpp | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings.cpp b/bindings.cpp index bb56ac3..740b186 100644 --- a/bindings.cpp +++ b/bindings.cpp @@ -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; } @@ -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; } diff --git a/package.json b/package.json index 5f058e9..8228a2a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "glomium", - "version": "1.1.1", + "version": "1.1.2", "description": "Duktape bindings for node.js", "main": "index.js", "scripts": {