MCPcopy
hub / github.com/nodejs/undici / successSteps

Function successSteps

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 2

readAllBytesFunction · 0.85
consumeBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…