| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Starting from Node v22.0.0 the `buffer.constants.MAX_LENGTH` has been increased from 4 GiB to 8 PiB due to V8 engine update to 12.4.254.14.
|
Updated the commit message to adhere 72 characters per line limit. |
Sorry, something went wrong.
Starting from Node v22.0.0 the `buffer.constants.MAX_LENGTH` has been increased from 4 GiB to 8 PiB due to V8 engine update to 12.4.254.14. PR-URL: #54207 Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
| Back | FazBrowse Home | New Git URL |
Starting from Node v22.0.0 (which uses V8 12.4) the buffer.constants.MAX_LENGTH has been increased from 4 GiB to 8 PiB due to V8 engine update to 12.4.254.14. If I read it right the change was done in this commit to V8 engine.
The change is also easy to verify manually:
Welcome to Node.js v21.7.3. Type ".help" for more information. > (require('buffer').constants.MAX_LENGTH) / 2**30 4 Welcome to Node.js v22.0.0. Type ".help" for more information. > (require('buffer').constants.MAX_LENGTH + 1) / 2**30 8388608 > (require('buffer').constants.MAX_LENGTH + 1) / 2**40 8192 >