Skip to content

Conversation

@cjihrig
Copy link
Contributor

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

Fixes: #28077

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

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Jun 10, 2019

If require.resolve() is passed an options object, but the paths option is not present, then use the default require.resolve() paths. PR-URL: nodejs#28078Fixes: nodejs#28077 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anto Aravinth <[email protected]> Reviewed-By: James M Snell <[email protected]>
@cjihrigcjihrig merged commit 58fc168 into nodejs:masterJun 11, 2019
@cjihrigcjihrig deleted the req-res branch June 11, 2019 17:24
BridgeAR pushed a commit that referenced this pull request Jun 17, 2019
If require.resolve() is passed an options object, but the paths option is not present, then use the default require.resolve() paths. PR-URL: #28078Fixes: #28077 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anto Aravinth <[email protected]> Reviewed-By: James M Snell <[email protected]>
@BridgeARBridgeAR mentioned this pull request Jun 17, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

require.resolve() fails with an empty options object

8 participants

@cjihrig@nodejs-github-bot@jasnell@Trott@antsmartian@richardlau@BridgeAR@ZYSzys