doc: change type of child_process.signalCode to string
During testing, and interfacing with child_processes, I found that the child_proccess.signalCode property to be the string representation of the signal, not number.
Tested on node v14.6.0 (Windows) Tested on node v14.9.0 (Linux)
Sample code:
const child_process = require('child_process');
const cp = child_process.spawn('sleep', ['10']);
cp.kill();
setTimeout(() => console.log(cp.signalCode, typeof cp.signalCode), 100);
Checklist
-
documentation is changed or added -
commit message follows commit guidelines