| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6bbe285 commit c8bbd83
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -122,6 +122,15 @@ function getTestCases(isWorker = false) { | |||
| 122 | 122 | result: isWorker ? 1 : 7, | |
| 123 | 123 | error: /^Error: ok$/, | |
| 124 | 124 | }); | |
| 125 | + | ||
| 126 | + function exitWithUndefinedFatalException() { | ||
| 127 | + process._fatalException = undefined; | ||
| 128 | + throw new Error('ok'); | ||
| 129 | + } | ||
| 130 | + cases.push({ | ||
| 131 | + func: exitWithUndefinedFatalException, | ||
| 132 | + result: 6, | ||
| 133 | + }); | ||
| 125 | 134 | return cases; | |
| 126 | 135 | } | |
| 127 | 136 | exports.getTestCases = getTestCases; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments