- Error:
RangeError - Step: none
- Fields: only
code. This is a standardRangeError, because the cause is how the function is called, not the data.
What it means
The maxArrayBufferLength or maxArrayLength option of binary mode is not a non-negative safe integer. Development builds name the option in the message.
Common causes
- A negative number, a fraction,
NaNorInfinity. - A string read from configuration, such as
"1000000".
How to fix it
- Pass a whole number from
0toNumber.MAX_SAFE_INTEGER, or leave the option out to use the default of1000000. See Untrusted input.