(data)
| 324 | } |
| 325 | |
| 326 | function sendResult(data) { |
| 327 | if (process.send) { |
| 328 | // If forked, report by process send |
| 329 | process.send(data, () => { |
| 330 | if (process.env.NODE_RUN_BENCHMARK_FN !== undefined) { |
| 331 | // If, for any reason, the process is unable to self close within |
| 332 | // a second after completing, forcefully close it. |
| 333 | require('timers').setTimeout(() => { |
| 334 | process.exit(0); |
| 335 | }, 5000).unref(); |
| 336 | } |
| 337 | }); |
| 338 | } else { |
| 339 | // Otherwise report by stdout |
| 340 | process.stdout.write(formatResult(data)); |
| 341 | } |
| 342 | } |
| 343 | |
| 344 | const urls = { |
| 345 | long: 'http://nodejs.org:89/docs/latest/api/foo/bar/qua/13949281/0f28b/' + |
no test coverage detected
searching dependent graphs…