MCPcopy Index your code
hub / github.com/nodejs/node / convertProcessSignalToExitCode

Function convertProcessSignalToExitCode

lib/internal/util.js:381–390  ·  view source on GitHub ↗
(signalCode)

Source from the content-addressed store, hash-verified

379}
380
381function convertProcessSignalToExitCode(signalCode) {
382 // Lazy-load to avoid a circular dependency.
383 if (validateOneOf === undefined)
384 ({ validateOneOf } = require('internal/validators'));
385
386 validateOneOf(signalCode, 'signalCode', ObjectKeys(signals));
387
388 // POSIX standard: exit code for signal termination is 128 + signal number.
389 return 128 + signals[signalCode];
390}
391
392function getConstructorOf(obj) {
393 while (obj) {

Calls 1

requireFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…