You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this an expected behavior? I'm OK with the current null returning behavior but we should inform this special case in the API document. Otherwise, if the original intent of #16397 is always retrieving Array<string> as currently documented, we should fix the bug.
For reference, require.resolve returns the ID itself when it takes one of the built-in module IDs.
Activity
cjihrig commentedon Jan 18, 2018
I think documenting
nullas a possible return value here is fine.doc: include null as a return value for require.resolve.paths()
shinnn commentedon Jan 25, 2018
@cjihrig @jasnell @nephross @vsemozhetbyt Thanks.
doc: fix return value for require.resolve.paths()
doc: fix return value for require.resolve.paths()
doc: fix return value for require.resolve.paths()