Skip to content

Commit b8c142c

Browse files
committed
timers: modified comment to try/finally
Replaced try/catch with try/finally in comments, line 744. Fixes: nodejs#14308
1 parent ea2e636 commit b8c142c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/timers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ function tryOnImmediate(immediate, oldTail) {
741741
var threw = true;
742742
emitBefore(immediate[async_id_symbol], immediate[trigger_id_symbol]);
743743
try {
744-
// make the actual call outside the try/catch to allow it to be optimized
744+
// make the actual call outside the try/finally to allow it to be optimized
745745
runCallback(immediate);
746746
threw = false;
747747
} finally {

0 commit comments

Comments
 (0)