Skip to content

Commit 6c6c73d

Browse files
committed
Fix compilation under TypeScript@next (TypeStrong#95)
1 parent be38fc8 commit 6c6c73d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/ts-node.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ Options:
6666
*/
6767
const _emit = process.emit
6868

69-
process.emit = function (type, error) {
69+
process.emit = function (type, error): boolean {
7070
// Print the error message when no other listeners are present.
7171
if (type === 'uncaughtException' && error instanceof TSError && process.listeners(type).length === 0) {
72-
return printAndExit(error)
72+
printAndExit(error)
7373
}
7474

7575
return _emit.apply(this, arguments)

0 commit comments

Comments
 (0)