MCPcopy Create free account
hub / github.com/nodejs/node / #checkClosed

Method #checkClosed

lib/internal/vfs/file_handle.js:101–105  ·  view source on GitHub ↗

* Throws if the handle is closed. * @param {string} syscall The syscall name for the error

(syscall)

Source from the content-addressed store, hash-verified

99 * @param {string} syscall The syscall name for the error
100 */
101 #checkClosed(syscall) {
102 if (this[kClosed]) {
103 throw createEBADF(syscall);
104 }
105 }
106
107 /**
108 * Reads data from the file.

Callers 15

readMethod · 0.95
readSyncMethod · 0.95
writeMethod · 0.95
writeSyncMethod · 0.95
readFileMethod · 0.95
readFileSyncMethod · 0.95
writeFileMethod · 0.95
writeFileSyncMethod · 0.95
statMethod · 0.95
statSyncMethod · 0.95
truncateMethod · 0.95
truncateSyncMethod · 0.95

Calls 1

createEBADFFunction · 0.85

Tested by

no test coverage detected