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

Function allowFailed

test/parallel/test-dns-default-order-ipv4.js:23–27  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

21// We want to test the parameter of order only so that we
22// ignore possible errors here.
23function allowFailed(fn) {
24 return fn.catch((_err) => {
25 //
26 });
27}
28
29(async () => {
30 let callsLength = 0;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected