Skip to content

support Node.js v26#1016

Open
IlyasShabi wants to merge 1 commit intonodejs:mainfrom
IlyasShabi:ishabi/v26-support
Open

support Node.js v26#1016
IlyasShabi wants to merge 1 commit intonodejs:mainfrom
IlyasShabi:ishabi/v26-support

Conversation

@IlyasShabi
Copy link
Copy Markdown
Member

This PR adds support for Node.js v26.

It comes with V8 14.6 which introduces breaking changes around v8::PropertyCallbackInfo :

  • Holder() is removed -> HolderV2().
  • This() is removed.
  • ReturnValue<void>::Set(Local<S>) no longer accepts object values

Comment thread nan_callbacks_12_inl.h
#endif
}
inline v8::Local<v8::Object> Holder() const {
#if defined(NAN_HAS_PROPERTY_CALLBACK_INFO_HOLDER_V2)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Comment thread nan_callbacks_12_inl.h
#if defined(NAN_HAS_PROPERTY_CALLBACK_INFO_HOLDER_V2)
template<>
template <typename S>
inline void ReturnValue<void>::Set(const v8::Local<S> &) {}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@IlyasShabi IlyasShabi marked this pull request as ready for review May 5, 2026 21:26
@IlyasShabi
Copy link
Copy Markdown
Member Author

I believe failure on Node.js v16 and v17 are not related to my changes 🤔 Can someone help on this please?

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