| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0f46a4f commit d25c785
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,8 +17,11 @@ if (process.argv[2] === 'child') { | |||
| 17 | 17 | const child = spawnSync(process.execPath, | |
| 18 | 18 | ['--expose-internals', __filename, 'child'], | |
| 19 | 19 | { stdio: 'inherit' }); | |
| 20 | - // FreeBSD uses SIGILL for this kind of crash. | ||
| 20 | + // FreeBSD uses SIGILL (v12.2) or SIGBUS (v12.4 and greater) for this kind of crash. | ||
| 21 | 21 | // macOS uses SIGILL or SIGTRAP (arm64) for this kind of crash. | |
| 22 | - assert(child.signal === 'SIGSEGV' || child.signal === 'SIGILL' || | ||
| 23 | - child.signal === 'SIGTRAP', `child.signal = ${child.signal}`); | ||
| 22 | + const allowedSignals = ['SIGSEGV', 'SIGILL', 'SIGTRAP', 'SIGBUS']; | ||
| 23 | + assert( | ||
| 24 | + allowedSignals.includes(child.signal), | ||
| 25 | + `child.signal = ${child.signal}`, | ||
| 26 | + ); | ||
| 24 | 27 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments