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

Function lazyNewStreams

lib/internal/fs/promises.js:163–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161let newStreamsToUint8Array;
162let newStreamsConvertChunks;
163function lazyNewStreams() {
164 if (newStreamsPull === undefined) {
165 const pullModule = require('internal/streams/iter/pull');
166 newStreamsPull = pullModule.pull;
167 newStreamsPullSync = pullModule.pullSync;
168 const utils = require('internal/streams/iter/utils');
169 newStreamsParsePullArgs = utils.parsePullArgs;
170 newStreamsToUint8Array = utils.toUint8Array;
171 newStreamsConvertChunks = utils.convertChunks;
172 }
173}
174
175// By the time the C++ land creates an error for a promise rejection (likely from a
176// libuv callback), there is already no JS frames on the stack. So we need to

Callers 1

promises.jsFile · 0.85

Calls 1

requireFunction · 0.50

Tested by

no test coverage detected