| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 85e6271 commit 0ade488
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -493,6 +493,8 @@ exports.mustCallAtLeast = function(fn, minimum) { | |||
| 493 | 493 | }; | |
| 494 | 494 | ||
| 495 | 495 | function _mustCallInner(fn, criteria = 1, field) { | |
| 496 | + if (process._exiting) | ||
| 497 | + throw new Error('Cannot use common.mustCall*() in process exit handler'); | ||
| 496 | 498 | if (typeof fn === 'number') { | |
| 497 | 499 | criteria = fn; | |
| 498 | 500 | fn = noop; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments