Skip to content

Commit e0928d6

Browse files
authored
esm: fix path normalization in finalizeResolution
PR-URL: #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>
1 parent 9c1c08e commit e0928d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/modules/esm/resolve.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
245245
}
246246

247247
const stats = internalFsBinding.internalModuleStat(
248-
StringPrototypeEndsWith(internalFsBinding, path, '/') ? StringPrototypeSlice(path, -1) : path,
248+
StringPrototypeEndsWith(path, '/') ? StringPrototypeSlice(path, -1) : path,
249249
);
250250

251251
// Check for stats.isDirectory()

0 commit comments

Comments
 (0)