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

Method _destroy

lib/internal/vfs/streams.js:342–347  ·  view source on GitHub ↗

* Implements the writable _destroy method. * @param {Error|null} err The error * @param {Function} callback Callback

(err, callback)

Source from the content-addressed store, hash-verified

340 * @param {Function} callback Callback
341 */
342 _destroy(err, callback) {
343 if (this.#autoClose) {
344 this.#close();
345 }
346 callback(err);
347 }
348}
349
350module.exports = {

Callers

nothing calls this directly

Calls 2

#closeMethod · 0.95
callbackFunction · 0.50

Tested by

no test coverage detected