({ n, breakOnSigint, withSigintListener })
| 11 | const vm = require('vm'); |
| 12 | |
| 13 | function main({ n, breakOnSigint, withSigintListener }) { |
| 14 | const options = breakOnSigint ? { breakOnSigint: true } : {}; |
| 15 | |
| 16 | process.removeAllListeners('SIGINT'); |
| 17 | if (withSigintListener) |
| 18 | process.on('SIGINT', () => {}); |
| 19 | |
| 20 | bench.start(); |
| 21 | for (let i = 0; i < n; i++) |
| 22 | vm.runInThisContext('0', options); |
| 23 | bench.end(n); |
| 24 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…