FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix C++ native module build for Node N-API by yumin-chen · Pull Request #4 · Chen-Software/nodegit · GitHub

Repository navigation

Fix C++ native module build for Node N-API - #4

Open
yumin-chen wants to merge 7 commits into
mainfrom
fix-native-build-5156383725072450096
Open

yumin-chen wants to merge 7 commits into
mainfrom
fix-native-build-5156383725072450096

Conversation

Copy link
Copy Markdown

Fixed C++ compilation issues after migrating to N-API:

  • Added -fexceptions to binding.gyp template on Linux/BSD so node-addon-api napi.h detects exception support.
  • Updated ToV8 overload in v8_helpers.h template using std::enable_if and std::is_arithmetic to avoid redefinition conflicts between long and int64_t on 64-bit systems.
  • Added missing #include in tracker_wrap.cc template.
  • Updated obsolete assert.false and assert.gt calls in test/tests/clone.js.
  • Generated native C++ source files and verified compilation and test suite passing.

PR created automatically by Jules for task 5156383725072450096 started by @yumin-chen

yumin-chen and others added 6 commits September 18, 2026 11:55
Require node >= 22 and use NAPI_VERSION=10
- Enable C++ exceptions in binding.gyp template on Linux/BSD for node-addon-api
- Resolve ToV8 redefinition error for int64_t and long using template SFINAE
- Add missing cassert include in tracker_wrap.cc
- Update clone test assertions to use standard assert expressions

Co-authored-by: yumin-chen <10954839+yumin-chen@users.noreply.github.com>

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

- Enable C++ exceptions in binding.gyp template on Linux/BSD for node-addon-api
- Resolve ToV8 redefinition error for int64_t and long using template SFINAE
- Add missing cassert include in tracker_wrap.cc
- Update clone test assertions to use standard assert expressions

Co-authored-by: yumin-chen <10954839+yumin-chen@users.noreply.github.com>
yumin-chen force-pushed the main branch 10 times, most recently from f99272f to ba0e77d Compare September 21, 2026 14:13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL