From f31c91dc3d479b4b3b33ad497d2029833587c768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bertron?= Date: Tue, 8 Aug 2023 15:14:58 +0200 Subject: [PATCH] fix: error when used in worker --- src/addon.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addon.cc b/src/addon.cc index 9e40717..e761a43 100644 --- a/src/addon.cc +++ b/src/addon.cc @@ -73,4 +73,4 @@ NAN_MODULE_INIT(InitAddon) { Nan::New("PQ").ToLocalChecked(), Nan::GetFunction(tpl).ToLocalChecked()); } -NODE_MODULE(addon, InitAddon) +NAN_MODULE_WORKER_ENABLED(addon, InitAddon)