* Releases the writer’s lock on the corresponding stream. After the lock is released, the writer is no longer active. * If the associated stream is errored when the lock is released, the writer will appear errored in the same way from * now on; otherwise, the writer will appear clo
()
| 12546 | * other producers from writing in an interleaved manner. |
| 12547 | */ |
| 12548 | releaseLock() { |
| 12549 | if (!IsWritableStreamDefaultWriter(this)) { |
| 12550 | throw defaultWriterBrandCheckException("releaseLock"); |
| 12551 | } |
| 12552 | const stream4 = this._ownerWritableStream; |
| 12553 | if (stream4 === void 0) { |
| 12554 | return; |
| 12555 | } |
| 12556 | WritableStreamDefaultWriterRelease(this); |
| 12557 | } |
| 12558 | write(chunk = void 0) { |
| 12559 | if (!IsWritableStreamDefaultWriter(this)) { |
| 12560 | return promiseRejectedWith(defaultWriterBrandCheckException("write")); |
nothing calls this directly
no test coverage detected