diff --git a/benchmark/fs/read-stream-throughput.js b/benchmark/fs/read-stream-throughput.js index 85aa3c929feb83..162cef6864a686 100644 --- a/benchmark/fs/read-stream-throughput.js +++ b/benchmark/fs/read-stream-throughput.js @@ -35,7 +35,7 @@ function main(conf) { throw new Error(`invalid encodingType: ${encodingType}`); } - makeFile(runTest); + makeFile(); } function runTest() { diff --git a/lib/path.js b/lib/path.js index 5f60e4afec3e8a..b7f426102150a3 100644 --- a/lib/path.js +++ b/lib/path.js @@ -290,7 +290,6 @@ const win32 = { (code >= 97/*a*/ && code <= 122/*z*/)) { // Possible device root - code = path.charCodeAt(1); if (path.charCodeAt(1) === 58/*:*/) { device = path.slice(0, 2); rootEnd = 2; @@ -412,7 +411,6 @@ const win32 = { (code >= 97/*a*/ && code <= 122/*z*/)) { // Possible device root - code = path.charCodeAt(1); if (path.charCodeAt(1) === 58/*:*/) { device = path.slice(0, 2); rootEnd = 2; @@ -788,7 +786,6 @@ const win32 = { (code >= 97/*a*/ && code <= 122/*z*/)) { // Possible device root - code = path.charCodeAt(1); if (path.charCodeAt(1) === 58/*:*/) { rootEnd = offset = 2; if (len > 2) { @@ -1056,7 +1053,6 @@ const win32 = { (code >= 97/*a*/ && code <= 122/*z*/)) { // Possible device root - code = path.charCodeAt(1); if (path.charCodeAt(1) === 58/*:*/) { rootEnd = 2; if (len > 2) {