diff --git a/lib/fs.js b/lib/fs.js index 1b3df1119f3aa5..2944a44a317f76 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -1424,7 +1424,7 @@ if (isWindows) { }; } else { splitRoot = function splitRoot(str) { - for (var i = 0; i < str.length; ++i) { + for (let i = 0; i < str.length; ++i) { if (str.charCodeAt(i) !== CHAR_FORWARD_SLASH) return str.slice(0, i); }