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

Function createEBADF

lib/internal/vfs/errors.js:94–101  ·  view source on GitHub ↗

* Creates an EBADF error for invalid file descriptor operations. * @param {string} syscall The system call name * @returns {Error}

(syscall)

Source from the content-addressed store, hash-verified

92 * @returns {Error}
93 */
94function createEBADF(syscall) {
95 const err = new UVException({
96 errno: UV_EBADF,
97 syscall,
98 });
99 ErrorCaptureStackTrace(err, createEBADF);
100 return err;
101}
102
103/**
104 * Creates an EEXIST error.

Callers 15

_readMethod · 0.85
_writeMethod · 0.85
ftruncateSyncMethod · 0.85
closeSyncMethod · 0.85
readSyncMethod · 0.85
writeSyncMethod · 0.85
fstatSyncMethod · 0.85
closeMethod · 0.85
readMethod · 0.85
writeMethod · 0.85
fstatMethod · 0.85
#checkClosedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…