fix: fix vs2026 ICE compatibility#1739
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1739 +/- ##
=======================================
Coverage 63.69% 63.69%
=======================================
Files 3 3
Lines 2063 2063
Branches 730 730
=======================================
Hits 1314 1314
Misses 162 162
Partials 587 587 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
I see that actions with Node.js v26 are failing because of Now about the other failures. They seem to happen on Windows Server 2025, and this is why @@
template <typename T>
template <typename InstanceWrap<T>::InstanceGetterCallback getter,
typename InstanceWrap<T>::InstanceSetterCallback setter>
inline ClassPropertyDescriptor<T> InstanceWrap<T>::InstanceAccessor(
const char* utf8name, napi_property_attributes attributes, void* data) {
napi_property_descriptor desc = napi_property_descriptor();
desc.utf8name = utf8name;
desc.getter = details::TemplatedInstanceCallback<T, getter>;
- desc.setter = This::WrapSetter(This::SetterTag<setter>());
+ desc.setter =
+ setter == nullptr ? nullptr : details::TemplatedInstanceVoidCallback<T, setter>;
desc.data = data;
desc.attributes = attributes;
return desc;
}
@@
template <typename T>
template <typename InstanceWrap<T>::InstanceGetterCallback getter,
typename InstanceWrap<T>::InstanceSetterCallback setter>
inline ClassPropertyDescriptor<T> InstanceWrap<T>::InstanceAccessor(
Symbol name, napi_property_attributes attributes, void* data) {
napi_property_descriptor desc = napi_property_descriptor();
desc.name = name;
desc.getter = details::TemplatedInstanceCallback<T, getter>;
- desc.setter = This::WrapSetter(This::SetterTag<setter>());
+ desc.setter =
+ setter == nullptr ? nullptr : details::TemplatedInstanceVoidCallback<T, setter>;
desc.data = data;
desc.attributes = attributes;
return desc;
}I do not have access to a Windows Server 2025 machine, but you can try pushing these changes (node-gyp version and the diff) and rerun the actions to see if it will be fixed. |
|
Unfortunately the patch did not fix the Internal Compiler Error. I'm going to try with pinning the MSVS version. |
Fix GitHub action failures on windows.