mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
esm: fix path normalization in finalizeResolution
PR-URL: https://github.com/nodejs/node/pull/62080 Refs: https://github.com/nodejs/node/pull/61478/changes/BASE..6cd90e1c0167f94c7dc671d10316e561c81f26af#r2871221559 Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
1 file changed
+1
-1
@@ -245,7 +245,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
||||
}
|
||||
|
||||
const stats = internalFsBinding.internalModuleStat(
|
||||
StringPrototypeEndsWith(internalFsBinding, path, '/') ? StringPrototypeSlice(path, -1) : path,
|
||||
StringPrototypeEndsWith(path, '/') ? StringPrototypeSlice(path, -1) : path,
|
||||
);
|
||||
|
||||
// Check for stats.isDirectory()
|
||||
|
||||
Reference in new issue
Block a user