MCPcopy Create free account
hub / github.com/nodejs/node / successSteps

Function successSteps

deps/undici/src/lib/web/fetch/body.js:480–486  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

478 // with data. If that threw an exception, then run errorSteps
479 // with that exception.
480 const successSteps = (data) => {
481 try {
482 promise.resolve(convertBytesToJSValue(data))
483 } catch (e) {
484 errorSteps(e)
485 }
486 }
487
488 // 5. If object’s body is null, then run successSteps with an
489 // empty byte sequence.

Callers 4

readAllBytesFunction · 0.85
consumeBodyFunction · 0.85
readAllBytesFunction · 0.85
consumeBodyFunction · 0.85

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected