MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / abort

Method abort

out/cli.cjs:12513–12521  ·  view source on GitHub ↗

* If the reader is active, behaves the same as WritableStream.abort | stream.abort(reason).

(reason = void 0)

Source from the content-addressed store, hash-verified

12511 * If the reader is active, behaves the same as {@link WritableStream.abort | stream.abort(reason)}.
12512 */
12513 abort(reason = void 0) {
12514 if (!IsWritableStreamDefaultWriter(this)) {
12515 return promiseRejectedWith(defaultWriterBrandCheckException("abort"));
12516 }
12517 if (this._ownerWritableStream === void 0) {
12518 return promiseRejectedWith(defaultWriterLockException("abort"));
12519 }
12520 return WritableStreamDefaultWriterAbort(this, reason);
12521 }
12522 /**
12523 * If the reader is active, behaves the same as {@link WritableStream.close | stream.close()}.
12524 */

Callers

nothing calls this directly

Tested by

no test coverage detected