Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 20x 20x 20x 20x 20x 20x 20x 74x 74x 74x 20x 20x 20x 20x | 'use strict'; const { exitCodes: { kUnfinishedTopLevelAwait } } = internalBinding('errors'); // Handle a Promise from running code that potentially does Top-Level Await. // In that case, it makes sense to set the exit code to a specific non-zero // value if the main code never finishes running. function handleProcessExit() { process.exitCode ??= kUnfinishedTopLevelAwait; } module.exports = { handleProcessExit, }; |