MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / isWindowsNativeCrashCode

Function isWindowsNativeCrashCode

freebuff/cli/release/index.js:63–71  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

61}
62
63function isWindowsNativeCrashCode(code) {
64 const unsignedCode = getUnsignedExitCode(code)
65 return (
66 process.platform === 'win32' &&
67 (unsignedCode === 0xC000001D ||
68 unsignedCode === 0xC0000005 ||
69 unsignedCode === 0xC0000409)
70 )
71}
72
73function shouldExitAlternateScreen(code, signal) {
74 return Boolean(signal) || isWindowsNativeCrashCode(code)

Callers 1

Calls 1

getUnsignedExitCodeFunction · 0.70

Tested by

no test coverage detected