| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -273,7 +273,8 @@ async_hooks.createHook({ | |||
| 273 | 273 | init(asyncId, type, triggerAsyncId) { | |
| 274 | 274 | const eid = async_hooks.executionAsyncId(); | |
| 275 | 275 | fs.writeSync( | |
| 276 | - 1, `${type}(${asyncId}): trigger: ${triggerAsyncId} execution: ${eid}\n`); | ||
| 276 | + process.stdout.fd, | ||
| 277 | + `${type}(${asyncId}): trigger: ${triggerAsyncId} execution: ${eid}\n`); | ||
| 277 | 278 | } | |
| 278 | 279 | }).enable(); | |
| 279 | 280 | ||
@@ -325,7 +326,7 @@ async_hooks.createHook({ | |||
| 325 | 326 | const eid = async_hooks.executionAsyncId(); | |
| 326 | 327 | const indentStr = ' '.repeat(indent); | |
| 327 | 328 | fs.writeSync( | |
| 328 | - 1, | ||
| 329 | + process.stdout.fd, | ||
| 329 | 330 | `${indentStr}${type}(${asyncId}):` + | |
| 330 | 331 | ` trigger: ${triggerAsyncId} execution: ${eid}\n`); | |
| 331 | 332 | }, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments