nan icon indicating copy to clipboard operation
nan copied to clipboard

Native Abstractions for Node.js

Results 78 nan issues
Sort by recently updated
recently updated
newest added

Tried to remove the dependence on macros. The gc callback thing feels a bit clumsy.

Was merged with MicrotaskQueue::RunMicrotasks: https://github.com/v8/v8/commit/ba363c755b14d8d81313509b797f421226bc4ea1

Hi, I have a C++ library with an API call which will take in a callback. That callback will return a reference to another callback that is to be set...

### Environment **Tech stack:** - nan 2.14.0 - electron 9.1.2 - cmake-js 6.0.0 - cmake 3.17.0 **Environment:** - Mac OS 10.15.5 (Reproduced on Windows 10 as well) ### Premise We're...

Node 10 added [Context-aware addons](https://nodejs.org/api/addons.html#addons_context_aware_addons), using the `NODE_MODULE_INITIALIZER`. To be able to make such an addon with compatibility with older versions we need a corresponding macro in nan.

Nan::HandleScope scope; Local FunctionTemplate tp = Nan::New(New); tp->SetClassName(Nan::New(ClassName).ToLocalChecked()); tp->InstanceTemplate()->SetInternalFieldCount(1); Local Function cons = tp->GetFunction(); Local Object js; js= Nan::NewInstance(cons, argc, argv).ToLocalChecked(); args.GetReturnValue().Set(js); Using this method, two are generated( name is...

Hey. I need to store V8 callbacks as weak references, with the finalizer callback so I can remove the reference when appropriate. I've worked out how to do this with...

The last signed version I was able to find was https://github.com/nodejs/nan/releases/tag/v1.5.1 the latest tag is not signed https://github.com/nodejs/nan/releases/tag/v2.14.0.

In my c++ library I have the following: ```c++ typedef void (update_callback)(LibClass *data); void setCallback(update_callback *callback) { this->callback = callback; } ``` Using nan, I am assigning the persistent function...

Hi, Due to the following line: `T *new_data = new T[count];` in the AsyncProgress(Queue)Worker class `T` (your progress class) is required to have a default constructor. I have prepared a...