MCPcopy
hub / github.com/di-sukharev/opencommit / getWriter

Method getWriter

out/cli.cjs:8552–8555  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8550 return Ge(this) ? Xe(this) ? d6(new TypeError("Cannot close a stream that already has a writer")) : rt(this) ? d6(new TypeError("Cannot close an already-closing stream")) : Ke(this) : d6(_t("close"));
8551 }
8552 getWriter() {
8553 if (!Ge(this)) throw _t("getWriter");
8554 return new WritableStreamDefaultWriter(this);
8555 }
8556 };
8557 Object.defineProperties(WritableStream.prototype, { abort: { enumerable: true }, close: { enumerable: true }, getWriter: { enumerable: true }, locked: { enumerable: true } }), n(WritableStream.prototype.abort, "abort"), n(WritableStream.prototype.close, "close"), n(WritableStream.prototype.getWriter, "getWriter"), "symbol" == typeof e2.toStringTag && Object.defineProperty(WritableStream.prototype, e2.toStringTag, { value: "WritableStream", configurable: true });
8558 WritableStreamDefaultWriter = class {

Callers 1

ktFunction · 0.45

Calls 2

GeFunction · 0.85
_tFunction · 0.85

Tested by

no test coverage detected