MCPcopy Create free account
hub / github.com/microsoft/tslib / reject

Function reject

tslib.js:282–282  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

280 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
281 function fulfill(value) { resume("next", value); }
282 function reject(value) { resume("throw", value); }
283 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
284 };
285

Callers 2

fulfilledFunction · 0.70
rejectedFunction · 0.70

Calls 1

resumeFunction · 0.70

Tested by

no test coverage detected