Skip to content

Commit e2f531f

Browse files
marsonyatargos
authored andcommitted
path: refactor to use more primordials
PR-URL: #37893 Reviewed-By: Pooja D P <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Zijian Liu <[email protected]>
1 parent 006c7b7 commit e2f531f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/path.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ const win32 = {
178178
// Verify that a cwd was found and that it actually points
179179
// to our drive. If not, default to the drive's root.
180180
if (path === undefined ||
181-
(StringPrototypeSlice(path, 0, 2).toLowerCase() !==
181+
(StringPrototypeToLowerCase(StringPrototypeSlice(path, 0, 2)) !==
182182
StringPrototypeToLowerCase(resolvedDevice) &&
183183
StringPrototypeCharCodeAt(path, 2) === CHAR_BACKWARD_SLASH)) {
184184
path = `${resolvedDevice}\\`;
@@ -1410,7 +1410,7 @@ const posix = {
14101410
return StringPrototypeSlice(path, startDot, end);
14111411
},
14121412

1413-
format: _format.bind(null, '/'),
1413+
format: FunctionPrototypeBind(_format, null, '/'),
14141414

14151415
/**
14161416
* @param {string} path

0 commit comments

Comments
 (0)