Skip to content

Commit c8be6a5

Browse files
committed
handle_process_exit.js
1 parent 0438a5d commit c8be6a5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/internal/modules/esm/handle_process_exit.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
const { exitCodes: { kUnfinishedTopLevelAwait } } = internalBinding('errors');
44

5-
// Handle a Promise from running code that potentially does Top-Level Await.
6-
// In that case, it makes sense to set the exit code to a specific non-zero
7-
// value if the main code never finishes running.
5+
/**
6+
* Handle a Promise from running code that potentially does Top-Level Await.
7+
* In that case, it makes sense to set the exit code to a specific non-zero value
8+
* if the main code never finishes running.
9+
*/
810
function handleProcessExit() {
911
process.exitCode ??= kUnfinishedTopLevelAwait;
1012
}

0 commit comments

Comments
 (0)