mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix(ext/node): correct kMaxLength
value of node:buffer
(#29504)
This commit is contained in:
parent
b27f88239d
commit
4a80e1d29b
3 changed files with 10 additions and 9 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue