node-addon-api
node-addon-api copied to clipboard
Module for using Node-API from C++
I'm upgrading an addon I developed in VS2019 from node-addon-api version 1.7.2 to 4.3.0. When I build I get the error "'_mutex': unknown override specifier" and "missing type specifier -...
I am seeing a segfault with the [email protected] when the node processes tears down, and it appears related to the cleanup of a an ObjectWrap instance that is explicitly referenced,...
I've implemented https://github.com/ajihyf/node-addon-api-helper which may help to write boilerplate-less node-addon-api code. There is another issue https://github.com/nodejs/node-addon-api/issues/294 but not active for a while. Though WebIDL isn't supported currently, the approach is...
Opening gambit to fix #1066. Only lightly tested (I'll fix the errors, no need to comment on those). Seeking feedback on the approach before adding tests. Breaking change: this makes...
This is a usage / migration from NAN question. With NAN I used the following to determine the invoked property name: ``` NAN_GETTER(ClassName::Getters) { ... std::string propertyName = *Nan::Utf8String(property); ......
Hi 👋 I'm getting the following error trying to call `.Signal()` on `AsyncProgressWorker::ExecutionProgress`: View error ``` In file included from /home/jpaye/nuclearnet.js/node_modules/node-addon-api/napi.h:2905, from ../src/NetworkBinding.hpp:22, from ../src/NetworkListener.hpp:21, from ../src/NetworkListener.cpp:18: /home/jpaye/nuclearnet.js/node_modules/node-addon-api/napi-inl.h: In instantiation...
We are using a native addon with Electron (Both v14 and v16 show the same behaviour) There is a class, which roughly looks like this: ``` class Foo : public...
Due to Execute() method overloaded in AsyncProgressWorker and AsyncProgressQueueWorker, projects using these classes and with `-Woverloaded-virtual` enabled will fail to compile. **Reproduction** Apply the following and run tests. ``` diff...
This is a duplicate of #669 When a JS callback called from a `ThreadSafeFunction` throws an exception, the result is: ``` terminate called after throwing an instance of 'Napi::Error' what():...
Corrected some misspelled words. a