mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
doc: update buffer.constants.MAX_LENGTH size
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: https://github.com/nodejs/node/pull/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>
This commit is contained in:
@@ -5361,6 +5361,10 @@ added: v8.2.0
|
||||
<!-- YAML
|
||||
added: v8.2.0
|
||||
changes:
|
||||
- version: v22.0.0
|
||||
pr-url: https://github.com/nodejs/node/pull/52465
|
||||
description: Value is changed to 2<sup>53</sup> - 1 on 64-bit
|
||||
architectures.
|
||||
- version: v15.0.0
|
||||
pr-url: https://github.com/nodejs/node/pull/35415
|
||||
description: Value is changed to 2<sup>32</sup> on 64-bit
|
||||
@@ -5376,7 +5380,7 @@ changes:
|
||||
On 32-bit architectures, this value currently is 2<sup>30</sup> - 1 (about 1
|
||||
GiB).
|
||||
|
||||
On 64-bit architectures, this value currently is 2<sup>32</sup> (about 4 GiB).
|
||||
On 64-bit architectures, this value currently is 2<sup>53</sup> - 1 (about 8 PiB).
|
||||
|
||||
It reflects [`v8::TypedArray::kMaxLength`][] under the hood.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user