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

We have conducted an experimental test on our serialization library [Fury](https://github.com/apache/incubator-fury/blob/main/javascript/packages/hps/src/v8-fast-api-calls.h), which is used to detect whether the string type is Latin1 or UTF-8. However, the V8 header file we...

Refs https://chromium-review.googlesource.com/c/v8/v8/+/3395880. Chromium did an advance deprecation removal of the `ScriptOrigin` ctor without an Isolate. This allows Electron to remove a [patch](https://github.com/electron/electron/blob/61374019c03ab1af8584550277318ba7c2adb0ca/patches/nan/use_new_constructor_for_scriptorigin_when_17_x.patch#L1-L29)

This resulted in a real-world application issue: ``` [1] Assertion failed: (size 4k visual data. The check is implemented here https://github.com/nodejs/nan/blob/e14bdcd1f72d62bca1d541b66da43130384ec213/nan.h#L896 The constant is defined here: https://github.com/nodejs/nan/blob/e14bdcd1f72d62bca1d541b66da43130384ec213/nan.h#L417 I believe it...

Refs https://chromium-review.googlesource.com/c/v8/v8/+/5006387 Fixes native module compilation against node 21 / incoming v8 changes

I am using node 18.18.2 and yarn 3.2.4. If I do: 1. mkdir test 2. cd test 3. yarn init 4. yarn add nan I get the warning: ``` ➤...

We pass back a ptr to the object that implements our native node module's functionality to JavaScript using `Nan::ObjectWrap::Wrap()`. When we invoke a method in our native node module, that...

Getting the following warning with Node.js 20.x: ``` ../node_modules/nan/nan.h:686:39: warning: 'IdleNotificationDeadline' is deprecated: Use MemoryPressureNotification() to influence the GC schedule. [-Wdeprecated-declarations] return v8::Isolate::GetCurrent()->IdleNotificationDeadline( ... ``` This method will be deprecated...

Not ready, but let's see what happens. - [ ] Fix build for Node.js 9 and below - [ ] Copy other version-dependent logic from `.travis.yml` and `appveyor.yml` as necessary...

enhancement

Some internal discussion suggests that we should migrate all organization repositories to GitHub Actions. As far as I am aware, this is the only remaining repository in the Node.js organization...

enhancement

Test results: https://github.com/cclauss/nan/actions