Skip to content

Commit 4a5d7d4

Browse files
BridgeARMylesBorins
authored andcommittedFeb 21, 2018
benchmark: fix platform in basename-win32
It should say `win32` and not `posix`. PR-URL: #18320 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent a893b42 commit 4a5d7d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎benchmark/path/basename-win32.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22
const common = require('../common.js');
3-
const { posix } = require('path');
3+
const { win32 } = require('path');
44

55
const bench = common.createBenchmark(main, {
66
pathext: [
@@ -28,7 +28,7 @@ function main({ n, pathext }) {
2828

2929
bench.start();
3030
for (var i = 0; i < n; i++) {
31-
posix.basename(pathext, ext);
31+
win32.basename(pathext, ext);
3232
}
3333
bench.end(n);
3434
}

0 commit comments

Comments
 (0)