mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
src,lib: stabilize permission model
Move permission model from 1.1 (Active Development) to 2.0 (Stable). PR-URL: https://github.com/nodejs/node/pull/56201 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
This commit is contained in:
parent
33f0f1656b
commit
be04d06488
53 changed files with 143 additions and 147 deletions
|
@ -17,7 +17,7 @@ const bench = common.createBenchmark(main, {
|
|||
concurrent: [1, 10],
|
||||
}, {
|
||||
flags: [
|
||||
'--experimental-permission',
|
||||
'--permission',
|
||||
'--allow-fs-read=*',
|
||||
'--allow-fs-write=*',
|
||||
'--allow-child-process',
|
||||
|
|
|
@ -11,7 +11,7 @@ const rootPath = path.resolve(__dirname, '../../..');
|
|||
|
||||
const options = {
|
||||
flags: [
|
||||
'--experimental-permission',
|
||||
'--permission',
|
||||
`--allow-fs-read=${rootPath}`,
|
||||
'--allow-child-process',
|
||||
'--no-warnings',
|
||||
|
|
|
@ -48,7 +48,7 @@ function spawnProcess(script, bench, state) {
|
|||
function main({ count, script, nFiles, prefixPath }) {
|
||||
script = path.resolve(__dirname, '../../', `${script}.js`);
|
||||
const optionsWithScript = [
|
||||
'--experimental-permission',
|
||||
'--permission',
|
||||
`--allow-fs-read=${script}`,
|
||||
...mockFiles(nFiles, prefixPath).map((file) => '--allow-fs-read=' + file),
|
||||
script,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue