We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
process.on('exit') event handlers should run before fatal exception is logged. However, source-map-support inverts that ordering.
process.on('exit', () => { console.log('exit handler'); }); throw new Error();
❯ node ./test.js exit handler1 /d/Personal-dev/@TypeStrong/ts-node/test.js:8 throw new Error(); ^ Error at Object.<anonymous> (/d/Personal-dev/@TypeStrong/ts-node/test.js:8:7) ...stack...
❯ node --require source-map-support/register ./test.js /d/Personal-dev/@TypeStrong/ts-node/test.js:8 throw new Error(); ^ Error: at Object.<anonymous> (/d/Personal-dev/@TypeStrong/ts-node/test.js:8:7) ...stack... exit handler
The text was updated successfully, but these errors were encountered:
Fix #15
d145a92
Merge pull request #16 from cspotcode/ab/fix-exit-logging-order
4820368
Fix #15: process 'exit' listeners should run before fatal error is logged
source-map-support
Successfully merging a pull request may close this issue.
process.on('exit') event handlers should run before fatal exception is logged. However, source-map-support inverts that ordering.
The text was updated successfully, but these errors were encountered: