MCPcopy Create free account
hub / github.com/75team/SublimeJS / coerce

Function coerce

SublimeJS/js/when.js:445–463  ·  view source on GitHub ↗

* Coerces x to a trusted Promise * @param {*} x thing to coerce * @returns {*} Guaranteed to return a trusted Promise. If x * is trusted, returns x, otherwise, returns a new, trusted, already-resolved * Promise whose resolution value is: * * the resolution value of x if it's a forei

(self, x)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

promiseResolveFunction · 0.85

Calls 3

rejectedFunction · 0.85
assimilateFunction · 0.85
fulfilledFunction · 0.85

Tested by

no test coverage detected