MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / handledRejectionOrHasOnRejected

Function handledRejectionOrHasOnRejected

lib/web/polyfill.js:1296–1306  ·  view source on GitHub ↗
(promise)

Source from the content-addressed store, hash-verified

1294 return isFunction(then) ? then : false;
1295 }
1296 function handledRejectionOrHasOnRejected(promise){
1297 var record = promise[RECORD]
1298 , chain = record.c
1299 , i = 0
1300 , react;
1301 if(record.h)return true;
1302 while(chain.length > i){
1303 react = chain[i++];
1304 if(react.fail || handledRejectionOrHasOnRejected(react.P))return true;
1305 }
1306 }
1307 function notify(record, reject){
1308 var chain = record.c;
1309 if(reject || chain.length)asap(function(){

Callers 1

notifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected