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
{{ message }}
Repository navigation
ffi: int32/uint32 arguments reject -0 until the call is optimized #67033
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
00
-0 is an integer (Number.isInteger(-0) === true) and is within range for both types. Every other integer width (int8, uint8, int16, uint16, int64, uint64) accepts it, and so do the optimized Fast API and SharedBuffer paths.
What do you see instead?
ERR_INVALID_ARG_VALUE: Argument 0 must be an int320
uint32 behaves the same way ("Argument 0 must be a uint32").
Activity