MCPcopy Index your code
hub / github.com/nodejs/node / main

Function main

benchmark/permission/permission-startup.js:48–59  ·  view source on GitHub ↗
({ n, script, nFiles, prefixPath })

Source from the content-addressed store, hash-verified

46}
47
48function main({ n, script, nFiles, prefixPath }) {
49 script = path.resolve(__dirname, '../../', `${script}.js`);
50 const optionsWithScript = [
51 '--permission',
52 `--allow-fs-read=${script}`,
53 ...mockFiles(nFiles, prefixPath).map((file) => '--allow-fs-read=' + file),
54 script,
55 ];
56 const warmup = 3;
57 const state = { n, finished: -warmup };
58 spawnProcess(optionsWithScript, bench, state);
59}

Callers

nothing calls this directly

Calls 4

mockFilesFunction · 0.85
spawnProcessFunction · 0.70
mapMethod · 0.65
resolveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…