Skip to content

Commit

Permalink
benchmark: fix platform in basename-win32
Browse files Browse the repository at this point in the history
It should say `win32` and not `posix`.

PR-URL: #18320
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
BridgeAR authored and MylesBorins committed Feb 21, 2018
1 parent a893b42 commit 4a5d7d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmark/path/basename-win32.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';
const common = require('../common.js');
const { posix } = require('path');
const { win32 } = require('path');

const bench = common.createBenchmark(main, {
pathext: [
Expand Down Expand Up @@ -28,7 +28,7 @@ function main({ n, pathext }) {

bench.start();
for (var i = 0; i < n; i++) {
posix.basename(pathext, ext);
win32.basename(pathext, ext);
}
bench.end(n);
}

0 comments on commit 4a5d7d4

Please sign in to comment.