MCPcopy Create free account
hub / github.com/sindresorhus/execa / errorArrayFromAsync

Function errorArrayFromAsync

test/convert/iterable.js:26–30  ·  view source on GitHub ↗
(t, cause, asyncIterable, lines = [])

Source from the content-addressed store, hash-verified

24};
25
26const errorArrayFromAsync = async (t, cause, asyncIterable, lines = []) => {
27 const {value} = await asyncIterable.next();
28 lines.push(value);
29 await asyncIterable.throw(cause);
30};
31
32const throwsAsync = async (t, asyncIterable, arrayFromAsyncMethod) => {
33 const lines = [];

Callers 1

iterable.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected