mirror of https://github.com/nodejs/node.git
benchmark: fix platform in basename-win32
It should say `win32` and not `posix`. PR-URL: https://github.com/nodejs/node/pull/18320 Reviewed-By: James M Snell <jasnell@gmail.com>pull/18334/merge
parent
ff21fb1624
commit
d4015b8995
|
@ -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: [
|
||||
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue