MCPcopy Create free account
hub / github.com/nodejs/node / fail

Function fail

lib/internal/streams/iter/classic.js:692–697  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

690 },
691
692 fail(reason) {
693 cleanup(reason);
694 if (typeof writable.destroy === 'function') {
695 writable.destroy(reason);
696 }
697 },
698
699 [SymbolAsyncDispose]() {
700 if (isWritable()) {

Callers

nothing calls this directly

Calls 2

cleanupFunction · 0.70
destroyMethod · 0.45

Tested by

no test coverage detected