@@ -5372,7 +5372,7 @@ changes:
53725372 - version: v22.0.0
53735373 pr-url: https://github.com/nodejs/node/pull/52465
53745374 description: Value is changed to 2<sup>53</sup> - 1 on 64-bit
5375- architectures.
5375+ architectures, and 2<sup>31</sup> - 1 on 32-bit architectures .
53765376 - version: v15.0.0
53775377 pr-url: https://github.com/nodejs/node/pull/35415
53785378 description: Value is changed to 2<sup>32</sup> on 64-bit
@@ -5385,12 +5385,13 @@ changes:
53855385
53865386* Type: {integer} The largest size allowed for a single ` Buffer ` instance.
53875387
5388- On 32-bit architectures, this value currently is 2<sup >30 </sup > - 1 (about 1
5388+ On 32-bit architectures, this value is equal to 2<sup >31 </sup > - 1 (about 2
53895389GiB).
53905390
5391- On 64-bit architectures, this value currently is 2<sup >53</sup > - 1 (about 8 PiB).
5391+ On 64-bit architectures, this value is equal to [ ` Number.MAX_SAFE_INTEGER ` ] [ ]
5392+ (2<sup >53</sup > - 1, about 8 PiB).
53925393
5393- It reflects [ ` v8::TypedArray ::kMaxLength ` ] [ ] under the hood.
5394+ It reflects [ ` v8::Uint8Array ::kMaxLength ` ] [ ] under the hood.
53945395
53955396This value is also available as [ ` buffer.kMaxLength ` ] [ ] .
53965397
@@ -5535,6 +5536,7 @@ introducing security vulnerabilities into an application.
55355536[ `ERR_INVALID_BUFFER_SIZE` ] : errors.md#err_invalid_buffer_size
55365537[ `ERR_OUT_OF_RANGE` ] : errors.md#err_out_of_range
55375538[ `JSON.stringify()` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
5539+ [ `Number.MAX_SAFE_INTEGER` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER
55385540[ `String.prototype.indexOf()` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf
55395541[ `String.prototype.lastIndexOf()` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf
55405542[ `String.prototype.length` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length
@@ -5557,7 +5559,7 @@ introducing security vulnerabilities into an application.
55575559[ `buffer.constants.MAX_STRING_LENGTH` ] : #bufferconstantsmax_string_length
55585560[ `buffer.kMaxLength` ] : #bufferkmaxlength
55595561[ `util.inspect()` ] : util.md#utilinspectobject-options
5560- [ `v8::TypedArray ::kMaxLength` ] : https://v8.github.io/api/head/classv8_1_1TypedArray .html#a54a48f4373da0850663c4393d843b9b0
5562+ [ `v8::Uint8Array ::kMaxLength` ] : https://v8.github.io/api/head/classv8_1_1Uint8Array .html#a7677e3d0c9c92e4d40bef7212f5980c6
55615563[ base64url ] : https://tools.ietf.org/html/rfc4648#section-5
55625564[ endianness ] : https://en.wikipedia.org/wiki/Endianness
55635565[ iterator ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols
0 commit comments