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

Method getWriter

lib/internal/webstreams/writablestream.js:282–287  ·  view source on GitHub ↗

* @returns {WritableStreamDefaultWriter}

()

Source from the content-addressed store, hash-verified

280 * @returns {WritableStreamDefaultWriter}
281 */
282 getWriter() {
283 if (!isWritableStream(this))
284 throw new ERR_INVALID_THIS('WritableStream');
285 // eslint-disable-next-line no-use-before-define
286 return new WritableStreamDefaultWriter(this);
287 }
288
289 [kInspect](depth, options) {
290 return customInspect(depth, options, this[kType], {

Calls 1

isWritableStreamFunction · 0.85

Tested by 2

testFunction · 0.64
testFunction · 0.64