Skip to content

Commit d62ddbe

Browse files
vsemozhetbytMylesBorins
authored andcommitted
benchmark: fix fs\bench-realpathSync.js
Make it call-site-cwd-independent. PR-URL: #11904 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 85eb1bc commit d62ddbe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎benchmark/fs/bench-realpathSync.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
constcommon=require('../common');
44
constfs=require('fs');
55
constpath=require('path');
6+
7+
process.chdir(__dirname);
68
constresolved_path=path.resolve(__dirname,'../../lib/');
79
constrelative_path=path.relative(__dirname,'../../lib/');
810

0 commit comments

Comments
(0)