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
RangeError [ERR_OUT_OF_RANGE]: The value of "length" is out of range. It must be >= 0
&& <= 2147483647. Received 2147483648
at Object.write (node:fs:848:5)
at writeAll (node:fs:2224:6)
at node:fs:2314:7
at FSReqCallback.oncomplete (node:fs:188:23)
at FSReqCallback.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'ERR_OUT_OF_RANGE
On the other hand, with node's own writeFile, I can write arbitrary lengths:
Errors with:
On the other hand, with node's own
writeFile
, I can write arbitrary lengths:Example (16 GiB buffer)
(tested to work on Node
v23.0.0
, Windows 11)The text was updated successfully, but these errors were encountered: