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
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
# loadPaths - An {Array} of absolute and relative paths to search....resolve: (args...) ->extensions=args.pop() if_.isArray(_.last(args))
pathToResolve=args.pop()?.toString()
loadPaths= args
when loadPaths is assigned args, args is an array containing the rest of the parameters - excluding extensions and pathToResolve. args will unexpectedly be a nested array (it should not be) and the resolve method will break because of this. As I have seen implementations using a single string as argument, I propose that loadPaths should be able to be a string or an array;
fs-plus.coffee
when loadPaths is assigned
args,argsis an array containing the rest of the parameters - excludingextensionsandpathToResolve.argswill unexpectedly be a nested array (it should not be) and the resolve method will break because of this. As I have seen implementations using a single string as argument, I propose thatloadPathsshould be able to be a string or an array;example showing when it breaks: https://runkit.com/58679334ff226c001410a427/586793351fc1d20015993407