pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/nodejs/node/commit/b7def8ef5bfc5b098c0426ecbdc4fead5bdbb29c

ory-6534fbc3f5e83ac0.css" /> path: indicate index of wrong resolve() parameter · nodejs/node@b7def8e · GitHub
Skip to content

Commit b7def8e

Browse files
authored
path: indicate index of wrong resolve() parameter
PR-URL: #47660 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Deokjin Kim <[email protected]>
1 parent 3bca5c2 commit b7def8e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/path.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ const win32 = {
168168
let path;
169169
if (i >= 0) {
170170
path = args[i];
171-
validateString(path, 'path');
171+
validateString(path, `paths[${i}]`);
172172

173173
// Skip empty entries
174174
if (path.length === 0) {
@@ -1098,8 +1098,7 @@ const posix = {
10981098

10991099
for (let i = args.length - 1; i >= -1 && !resolvedAbsolute; i--) {
11001100
const path = i >= 0 ? args[i] : posixCwd();
1101-
1102-
validateString(path, 'path');
1101+
validateString(path, `paths[${i}]`);
11031102

11041103
// Skip empty entries
11051104
if (path.length === 0) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy