You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you using NAPI_EXPERIMENTAL? If so, please check this comment on a similar issue: #52229 (comment) If not, please state the same here, and we'll look further.
Version
20.12
Platform
Windows and OSX
Subsystem
napi-intl.h
What steps will reproduce the bug?
Line 2680 in file napi-intl.h
How often does it reproduce? Is there a required condition?
always it's a compiler error
What is the expected behavior? Why is that the expected behavior?
The code compiles in node 20.11.2 so I expect it to compile in node 20.12
What do you see instead?
Severity Code Description Project Line Suppression State Details File
Error C2664 'napi_status napi_create_external_buffer(napi_env,size_t,void *,node_api_nogc_finalize,void *,napi_value *)': cannot convert argument 4 from 'void (__cdecl *)(napi_env,void *,void *) noexcept' to 'node_api_nogc_finalize' binary_encoder 2680 C:\git\cloud\node_modules\node-addon-api\napi-inl.h
Additional information
Compiler errors on both OSX and Windows. Haven't tested on Linux
Severity Code Description Project Line Suppression State Details File
Error C2664 'napi_status napi_create_external_buffer(napi_env,size_t,void *,node_api_nogc_finalize,void *,napi_value *)': cannot convert argument 4 from 'void (__cdecl *)(napi_env,void *,void *) noexcept' to 'node_api_nogc_finalize' binary_encoder 2680 C:\git\cloud\node_modules\node-addon-api\napi-inl.h
The text was updated successfully, but these errors were encountered: