lib: rename validateSafeInteger to validateInteger
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), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines