node/lib/internal/modules/cjs
cjihrig ef51cc8ac9
module: fix createRequireFromPath() slash logic
The trailing slash detection logic in createRequireFromPath()
seemed slightly incorrect. This commit reworks the logic.

PR-URL: https://github.com/nodejs/node/pull/27634
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2019-05-13 13:07:52 -04:00
..
helpers.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
loader.js module: fix createRequireFromPath() slash logic 2019-05-13 13:07:52 -04:00