({ n })
| 8 | } |
| 9 | |
| 10 | function main({ n }) { |
| 11 | addon.count = 0; |
| 12 | bench.start(); |
| 13 | new Promise((resolve) => { |
| 14 | (function oneIteration() { |
| 15 | callNewWeak(); |
| 16 | setImmediate(() => ((addon.count < n) ? oneIteration() : resolve())); |
| 17 | })(); |
| 18 | }).then(() => bench.end(n)); |
| 19 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…