Skip to content

Commit 35e3456

Browse files
committed
benchmark: add --allow-env=* flag to permission benchmarks
1 parent 33a1126 commit 35e3456

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

benchmark/fs/readfile-permission-enabled.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const bench = common.createBenchmark(main, {
2121
'--allow-fs-read=*',
2222
'--allow-fs-write=*',
2323
'--allow-child-process',
24+
'--allow-env=*',
2425
],
2526
});
2627

benchmark/permission/permission-processhas-fs-read.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const options = {
1414
'--permission',
1515
`--allow-fs-read=${rootPath}`,
1616
'--allow-child-process',
17+
'--allow-env=*',
1718
'--no-warnings',
1819
],
1920
};

benchmark/permission/permission-startup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function main({ n, script, nFiles, prefixPath }) {
5050
const optionsWithScript = [
5151
'--permission',
5252
`--allow-fs-read=${script}`,
53+
'--allow-env=*',
5354
...mockFiles(nFiles, prefixPath).map((file) => '--allow-fs-read=' + file),
5455
script,
5556
];

0 commit comments

Comments
 (0)