Skip to content

Commit f9f9a42

Browse files
authored
path: use the correct name in validateString
The parameter was renamed from `ext` to `suffix` but not in the `validateString` call. PR-URL: #53669 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Deokjin Kim <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 4d1cc76 commit f9f9a42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/path.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ const win32 = {
775775
*/
776776
basename(path, suffix) {
777777
if (suffix !== undefined)
778-
validateString(suffix, 'ext');
778+
validateString(suffix, 'suffix');
779779
validateString(path, 'path');
780780
let start = 0;
781781
let end = -1;
@@ -1335,7 +1335,7 @@ const posix = {
13351335
*/
13361336
basename(path, suffix) {
13371337
if (suffix !== undefined)
1338-
validateString(suffix, 'ext');
1338+
validateString(suffix, 'suffix');
13391339
validateString(path, 'path');
13401340

13411341
let start = 0;

0 commit comments

Comments
 (0)