Skip to content

buffer,error: improve bigint, big numbers and more

This improves the error message from ERR_OUT_OF_RANGE by closer inspecting the value and logging numbers above 2 ** 32 by using toLocaleString and a similar output for bigint. BigInt is now also marked if used.

Buffer errors also format the range as 2 ** n instead of showing a huge number.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading