MCPcopy Index your code
hub / github.com/microsoft/playwright / exitWithCode130

Function exitWithCode130

packages/utils/processLauncher.ts:76–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74let sigintHandlerCalled = false;
75function sigintHandler() {
76 const exitWithCode130 = () => {
77 // Give tests a chance to see that launched process did exit and dispatch any async calls.
78 if (isUnderTest()) {
79 // eslint-disable-next-line no-restricted-properties
80 setTimeout(() => process.exit(130), 1000);
81 } else {
82 // eslint-disable-next-line no-restricted-properties
83 process.exit(130);
84 }
85 };
86
87 if (sigintHandlerCalled) {
88 // Resort to default handler from this point on, just in case we hang/stall.

Callers 1

sigintHandlerFunction · 0.85

Calls 2

isUnderTestFunction · 0.90
exitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…