Skip to content

Commit 971b9f3

Browse files
samuliasmalatargos
authored andcommitted
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: #54207 Reviewed-By: Jake Yuesong Li <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 1ba2000 commit 971b9f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/api/buffer.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5361,6 +5361,10 @@ added: v8.2.0
53615361
<!-- YAML
53625362
added: v8.2.0
53635363
changes:
5364+
- version: v22.0.0
5365+
pr-url: https://github.com/nodejs/node/pull/52465
5366+
description: Value is changed to 2<sup>53</sup> - 1 on 64-bit
5367+
architectures.
53645368
- version: v15.0.0
53655369
pr-url: https://github.com/nodejs/node/pull/35415
53665370
description: Value is changed to 2<sup>32</sup> on 64-bit
@@ -5376,7 +5380,7 @@ changes:
53765380
On 32-bit architectures, this value currently is 2<sup>30</sup> - 1 (about 1
53775381
GiB).
53785382

5379-
On 64-bit architectures, this value currently is 2<sup>32</sup> (about 4 GiB).
5383+
On 64-bit architectures, this value currently is 2<sup>53</sup> - 1 (about 8 PiB).
53805384

53815385
It reflects [`v8::TypedArray::kMaxLength`][] under the hood.
53825386

0 commit comments

Comments
 (0)