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
See below. It seems like the error should mention reading, not writing?
It could be that internally, a write is done, or even that this is no big deal and should be closed with "as expected/good enough" -- though in a large system it might be less obvious what is wrong than in the repl snippet below.
> Buffer.from([2,3,4]).readUInt32BE()
Thrown:
RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to write outside buffer bounds
at boundsError (internal/buffer.js:70:11)
at Buffer.readUInt32BE (internal/buffer.js:295:5)
The text was updated successfully, but these errors were encountered:
This commit changes the default message used by
ERR_BUFFER_OUT_OF_BOUNDS. Previously, the default
message implied that the problematic was always a
write, which is not accurate.
PR-URL: #29098Fixes: #29097
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Sam Roberts <[email protected]>
Reviewed-By: Jiawen Geng <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Yongsheng Zhang <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
See below. It seems like the error should mention reading, not writing?
It could be that internally, a write is done, or even that this is no big deal and should be closed with "as expected/good enough" -- though in a large system it might be less obvious what is wrong than in the repl snippet below.
The text was updated successfully, but these errors were encountered: