Skip to content

Conversation

@minggangw
Copy link
Member

@minggangw minggangw commented Jan 29, 2026

This PR narrows the Node.js header inclusion in the native bindings to only pull in version macros, which helps mitigate compiler warnings from unnecessary Node C++ API exposure.

Changes:

  • Replace the broad <node.h> include with the more targeted <node_version.h> in rcl_bindings.cpp.
  • Continue to use NODE_MAJOR_VERSION, NODE_RUNTIME_ELECTRON, and NODE_MODULE_VERSION macros via the new header to guard behavior in CreateArrayBufferFromAddress.

Fix: #1385

Copilot AI review requested due to automatic review settings January 29, 2026 05:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR narrows the Node.js header inclusion in the native bindings to only pull in version macros, which helps mitigate compiler warnings from unnecessary Node C++ API exposure.

Changes:

  • Replace the broad <node.h> include with the more targeted <node_version.h> in rcl_bindings.cpp.
  • Continue to use NODE_MAJOR_VERSION, NODE_RUNTIME_ELECTRON, and NODE_MODULE_VERSION macros via the new header to guard behavior in CreateArrayBufferFromAddress.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coveralls
Copy link

Coverage Status

coverage: 85.565% (+0.02%) from 85.544%
when pulling d9b7686 on minggangw:fix-1384
into e465abd on RobotWebTools:develop.

@minggangw minggangw merged commit d77a05d into RobotWebTools:develop Jan 29, 2026
22 checks passed
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.

2 participants