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

Function sanitizeKillSignal

lib/child_process.js:1035–1043  ·  view source on GitHub ↗
(killSignal)

Source from the content-addressed store, hash-verified

1033
1034
1035function sanitizeKillSignal(killSignal) {
1036 if (typeof killSignal === 'string' || typeof killSignal === 'number') {
1037 return convertToValidSignal(killSignal);
1038 } else if (killSignal != null) {
1039 throw new ERR_INVALID_ARG_TYPE('options.killSignal',
1040 ['string', 'number'],
1041 killSignal);
1042 }
1043}
1044
1045module.exports = {
1046 _forkChild,

Callers 3

execFileFunction · 0.85
spawnFunction · 0.85
spawnSyncFunction · 0.85

Calls 1

convertToValidSignalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…