src: fix off-by-one error in native SetImmediate · nodejs/node@b9d21e5 · GitHub
Skip to content

Commit b9d21e5

Browse files
addaleaxBridgeAR
authored andcommitted
src: fix off-by-one error in native SetImmediate
Previously, the throwing callback would have been re-executed in case of an exception. This patch corrects the calculation to exclude the callback. PR-URL: #28082 Fixes: #26754 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 07ab591 commit b9d21e5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/env.cc

Lines changed: 5 additions & 0 deletions

0 commit comments

Comments
 (0)