Skip to content

Commit

Permalink
Fix compilation under TypeScript@next (TypeStrong#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Apr 11, 2016
1 parent be38fc8 commit 6c6c73d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/ts-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ Options:
*/
const _emit = process.emit

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

return _emit.apply(this, arguments)
Expand Down

0 comments on commit 6c6c73d

Please sign in to comment.