Skip to content

Commit c02f991

Browse files
committed
esm: fix path normalization in finalizeResolution
1 parent 88be44d commit c02f991

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)