(stdio, channel)
| 236 | }; |
| 237 | |
| 238 | function stdioStringToArray(stdio, channel) { |
| 239 | const options = []; |
| 240 | |
| 241 | switch (stdio) { |
| 242 | case 'ignore': |
| 243 | case 'overlapped': |
| 244 | case 'pipe': ArrayPrototypePush(options, stdio, stdio, stdio); break; |
| 245 | case 'inherit': ArrayPrototypePush(options, 0, 1, 2); break; |
| 246 | default: |
| 247 | throw new ERR_INVALID_ARG_VALUE('stdio', stdio); |
| 248 | } |
| 249 | |
| 250 | if (channel) ArrayPrototypePush(options, channel); |
| 251 | |
| 252 | return options; |
| 253 | } |
| 254 | |
| 255 | function ChildProcess() { |
| 256 | FunctionPrototypeCall(EventEmitter, this); |
no outgoing calls
no test coverage detected
searching dependent graphs…