nan
nan copied to clipboard
Native Abstractions for Node.js
There were major changes to `async_hooks` between 8.5.0 and 8.6.0. The same setup that works on 8.6.0 and above results in the following assertion on 8.5.0: `../src/node.cc:1379:v8::MaybeLocal node::MakeCallback(node::Environment*, v8::Local, v8::Local,...
Hello everybody, I am facing an issue using `Nan::NewBuffer(data, size)` in an electron app. However, I am not quite sure if this is an issue with electron or the nan...
I always felt that the `AsyncWorker`s are suffering from a design defect. Right at its very core is a very subtle anti-pattern. I call it "composition by inheritance". Does that...
Would it be possible to add a macro to have `GenericNamedPropertyGetterCallback` redirect to `NamedPropertyGetterCallback` so it doesn't throw an error when looking up a property with a symbol? nodejs/node#15000
## Background I have written some node addons, and I feel kind of pain in converting JS to C++ and back in the API bindings. So I plan to write...
AsyncWorker is useful whenever we want to have an asynchronous call to foreign code and potentially that foreign code can call back into the V8 main thread using AsyncProgressWorker. However,...
I have a named property interceptor and I use `Nan::SetNamedPropertyHandler` so that it works accross multiple node versions. ```cpp auto doctpl = Nan::New(DocumentWrap::ctor); doctpl->SetClassName(Nan::New("Document").ToLocalChecked()); doctpl->InstanceTemplate()->SetInternalFieldCount(1); // Instance functions Nan::SetPrototypeMethod(doctpl, "getTokenizerForField",...
When ExecutionProgress::Send() is invoked quickly to deliver data on repeated callbacks the previous data values are overwritten by the code line below. This results in only the latest data being...
The build log is here: http://aws-logs.debian.net/2016/11/18/node-nan_2.4.0-1_unstable.log Using node 4.6.1 (the debian version). i don't have a clue yet about why this is happening.
Sorry to open it again. For the first time I use git, i am not able to upload file, but for now, i can. The situation is following: I am...