We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be38fc8 commit 6c6c73dCopy full SHA for 6c6c73d
src/bin/ts-node.ts
@@ -66,10 +66,10 @@ Options:
66
*/
67
const _emit = process.emit
68
69
-process.emit = function (type, error) {
+process.emit = function (type, error): boolean {
70
// Print the error message when no other listeners are present.
71
if (type === 'uncaughtException' && error instanceof TSError && process.listeners(type).length === 0) {
72
- return printAndExit(error)
+ printAndExit(error)
73
}
74
75
return _emit.apply(this, arguments)
0 commit comments