Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2c2e2b5

Browse filesBrowse files
ajaffftargos
authored andcommitted
benchmark: fix bench-mkdirp to use recursive option
The original PR didn't update the benchmark after renaming the option. PR-URL: #23699 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 02f13ab commit 2c2e2b5
Copy full SHA for 2c2e2b5

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎benchmark/fs/bench-mkdirp.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/bench-mkdirp.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function main({ n }) {
1616
if (cntr-- <= 0)
1717
return bench.end(n);
1818
const pathname = `${tmpdir.path}/${++dirc}/${++dirc}/${++dirc}/${++dirc}`;
19-
fs.mkdir(pathname, { createParents: true }, (err) => {
19+
fs.mkdir(pathname, { recursive: true }, (err) => {
2020
r(cntr);
2121
});
2222
}(n));

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.