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 dd97f7e commit 9e7a788Copy full SHA for 9e7a788
src/invoker.ts
@@ -100,11 +100,14 @@ export class ErrorHandler {
100
sendCrashResponse({err, res: latestRes, callback: killInstance});
101
});
102
103
- process.on('exit', code => {
+ process.on('exit', (code: number | string) => {
104
+ if (typeof code === 'string') {
105
+ code = parseInt(code);
106
+ }
107
sendCrashResponse({
108
err: new Error(`Process exited with code ${code}`),
109
res: latestRes,
- silent: code === 0,
110
+ silent: code == 0,
111
112
113
0 commit comments