repl: handle exceptions from async context after close · nodejs/node@e4c164e · GitHub
Skip to content

Commit e4c164e

Browse files
addaleaxaduh95
authored andcommitted
repl: handle exceptions from async context after close
a9da9ff recently restructured async context handling in the REPL source so that it no longer uses the domain module, and instead performs its own async context tracking. That change was not intended to be breaking, but it affected behavior for uncaught exceptions thrown after the REPL was closed. Those would now be treated as uncaught exceptions on the process level, which is probably not intentional in most situations. While it's understandably not great that we handle execptions after closing the REPL instance, I am confident that it's best to restore the previous behavior for now and add more granular handling options separately and intentionally in a (potentially semver-major) follow-up change. Refs: #61227 PR-URL: #62165 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 67b854d commit e4c164e

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

lib/repl.js

Lines changed: 6 additions & 1 deletion
Lines changed: 23 additions & 0 deletions

0 commit comments

Comments
 (0)