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: nodejs#18320
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
BridgeAR authored and MayaLekova committed May 8, 2018
1 parent 43d8124 commit e673f94
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 e673f94

Please sign in to comment.