Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/npm/cli
/ registerUncaughtHandlers
Method
registerUncaughtHandlers
lib/cli/exit-handler.js:43–46 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
41
}
42
43
registerUncaughtHandlers () {
44
this.#process.on(
'uncaughtException'
, this.#handleExit)
45
this.#process.on(
'unhandledRejection'
, this.#handleExit)
46
}
47
48
exit (err) {
49
this.#handleExit(err)
Callers
2
mockExitHandler
Function · 0.95
entry.js
File · 0.45
Calls
1
on
Method · 0.45
Tested by
no test coverage detected