| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2d35607 commit e3d9d25
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,8 +27,10 @@ proc.on('error', common.mustCall(function(err) { | |||
| 27 | 27 | assert(err.code === 'EMFILE' || err.code === 'ENFILE'); | |
| 28 | 28 | })); | |
| 29 | 29 | ||
| 30 | - // 'exit' should not be emitted, the process was never spawned. | ||
| 31 | - proc.on('exit', assert.fail); | ||
| 30 | + proc.on('exit', function() { | ||
| 31 | + const msg = '"exit" should not be emitted (the process never spawned!)'; | ||
| 32 | + assert.fail(null, null, msg); | ||
| 33 | + }); | ||
| 32 | 34 | ||
| 33 | 35 | // close one fd for LSan | |
| 34 | 36 | if (openFds.length >= 1) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments