| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -287,7 +287,7 @@ function formatResult(data) { | |||
| 287 | 287 | } | |
| 288 | 288 | ||
| 289 | 289 | function sendResult(data) { | |
| 290 | - if (process.send) { | ||
| 290 | + if (process.send && Object.hasOwn(process.env, 'NODE_RUN_BENCHMARK_FN')) { | ||
| 291 | 291 | // If forked, report by process send | |
| 292 | 292 | process.send(data, () => { | |
| 293 | 293 | // If, for any reason, the process is unable to self close within | |
| Back | FazBrowse Home | New Git URL |
0 commit comments