MCPcopy Create free account
hub / github.com/sindresorhus/execa / getInvalidFdCode

Function getInvalidFdCode

test/stdio/native-fd.js:60–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58test('stdio[*] cannot use "inherit" and another value', testOverflowStreamArray, 3, ['inherit', 'pipe']);
59
60const getInvalidFdCode = () => {
61 if (isLinux) {
62 return 'EINVAL';
63 }
64
65 return isWindows ? 'EBADF' : 'ENXIO';
66};
67
68const testOverflowStreamArraySync = (t, fdNumber) => {
69 t.throws(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected