Skip to content

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), 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