* Creates a WritableStreamDefaultWriter | writer and locks the stream to the new writer. While the stream * is locked, no other writer can be acquired until this one is released. * * This functionality is especially useful for creating abstractions that desire the
()
| 12191 | * the same time, which would cause the resulting written data to be unpredictable and probably useless. |
| 12192 | */ |
| 12193 | getWriter() { |
| 12194 | if (!IsWritableStream(this)) { |
| 12195 | throw streamBrandCheckException$2("getWriter"); |
| 12196 | } |
| 12197 | return AcquireWritableStreamDefaultWriter(this); |
| 12198 | } |
| 12199 | } |
| 12200 | Object.defineProperties(WritableStream2.prototype, { |
| 12201 | abort: { enumerable: true }, |
nothing calls this directly
no test coverage detected