fix(ext/node): correct kMaxLength value of node:buffer (#29504)

This commit is contained in:
Yoshiya Hinosawa 2025-05-30 11:37:34 +09:00 committed by GitHub
parent b27f88239d
commit 4a80e1d29b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 9 deletions

View file

@ -113,7 +113,7 @@ float32Array[0] = -1; // 0xBF800000
// check this with `os.endianness()` because that is determined at compile time.
export const bigEndian = uInt8Float32Array[3] === 0;
export const kMaxLength = 2147483647;
export const kMaxLength = NumberMAX_SAFE_INTEGER;
export const kStringMaxLength = 536870888;
const MAX_UINT32 = 2 ** 32;