util: add regression test
This fixes util.isDate and util.isRegExp to abort in case more than
one argument is passed to the utility function.
This adds regression tests to make sure passing multiple args to these functions does not abort.
This got fixed in https://github.com/nodejs/node/pull/18415.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines