MCPcopy Create free account
hub / github.com/nodejs/node / [kDeserialize]

Method [kDeserialize]

lib/internal/webstreams/writablestream.js:332–343  ·  view source on GitHub ↗
({ port })

Source from the content-addressed store, hash-verified

330 }
331
332 [kDeserialize]({ port }) {
333 const transfer = lazyTransfer();
334 setupWritableStreamDefaultControllerFromSink(
335 this,
336 // The MessagePort is set to be referenced when reading.
337 // After two MessagePorts are closed, there is a problem with
338 // lingering promise not being properly resolved.
339 // https://github.com/nodejs/node/issues/51486
340 new transfer.CrossRealmTransformWritableSink(port, true),
341 1,
342 defaultSizeAlgorithm);
343 }
344}
345
346ObjectDefineProperties(WritableStream.prototype, {

Callers

nothing calls this directly

Calls 2

lazyTransferFunction · 0.85

Tested by

no test coverage detected