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

Method [kDeserialize]

lib/internal/webstreams/readablestream.js:666–676  ·  view source on GitHub ↗
({ port })

Source from the content-addressed store, hash-verified

664 }
665
666 [kDeserialize]({ port }) {
667 const transfer = lazyTransfer();
668 setupReadableStreamDefaultControllerFromSource(
669 this,
670 // The MessagePort is set to be referenced when reading.
671 // After two MessagePorts are closed, there is a problem with
672 // lingering promise not being properly resolved.
673 // https://github.com/nodejs/node/issues/51486
674 new transfer.CrossRealmTransformReadableSource(port, true),
675 0, defaultSizeAlgorithm);
676 }
677}
678
679ObjectDefineProperties(ReadableStream.prototype, {

Callers

nothing calls this directly

Calls 2

lazyTransferFunction · 0.85

Tested by

no test coverage detected