Skip to content

module: handle empty require.resolve() options

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/req-res into master

If require.resolve() is passed an options object, but the paths option is not present, then use the default require.resolve() paths.

Fixes: https://github.com/nodejs/node/issues/28077

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