Skip to content

lib: rename validateSafeInteger to validateInteger

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/ints into master

validateInteger() was renamed to validateSafeInteger() in https://github.com/nodejs/node/pull/26572. However, this function also works with unsafe integers. This commit restores the old name, and adds some basic tests.

Refs: https://github.com/nodejs/node/pull/26572

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

Merge request reports

Loading