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

Method closeWrapped

lib/internal/streams/fast-utf8-stream.js:563–570  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

561 };
562
563 const closeWrapped = () => {
564 // We skip errors in fsync
565 if (this.#fd !== 1 && this.#fd !== 2) {
566 this.#fs.close(this.#fd, done);
567 } else {
568 done();
569 }
570 };
571
572 try {
573 this.#fs.fsync(this.#fd, closeWrapped);

Callers

nothing calls this directly

Calls 2

closeMethod · 0.65
doneFunction · 0.50

Tested by

no test coverage detected