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
There is an old JavaScript trick that is ~~value (double not), it has the effect of truncating value without (almost) any performance impact, however it does not work for 64 bit values.
The original
napi_get_value_int32
truncates floating point numbers while theemnapi
version raises an exception.I think this applies to all integer handling in emnapi.
nodejs/node-addon-api#578
The text was updated successfully, but these errors were encountered: