We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d86aca9 commit a94cc27Copy full SHA for a94cc27
lib/path.js
@@ -163,7 +163,7 @@ const win32 = {
163
// Verify that a cwd was found and that it actually points
164
// to our drive. If not, default to the drive's root.
165
if (path === undefined ||
166
- (StringPrototypeSlice(path, 0, 2).toLowerCase() !==
+ (StringPrototypeToLowerCase(StringPrototypeSlice(path, 0, 2)) !==
167
StringPrototypeToLowerCase(resolvedDevice) &&
168
StringPrototypeCharCodeAt(path, 2) === CHAR_BACKWARD_SLASH)) {
169
path = `${resolvedDevice}\\`;
@@ -1321,7 +1321,7 @@ const posix = {
1321
return StringPrototypeSlice(path, startDot, end);
1322
},
1323
1324
- format: _format.bind(null, '/'),
+ format: FunctionPrototypeBind(_format, null, '/'),
1325
1326
parse(path) {
1327
validateString(path, 'path');
0 commit comments