MCPcopy Index your code
hub / github.com/requirejs/requirejs / onError

Function onError

require.js:529–552  ·  view source on GitHub ↗
(err, errback)

Source from the content-addressed store, hash-verified

527 }
528
529 function onError(err, errback) {
530 var ids = err.requireModules,
531 notified = false;
532
533 if (errback) {
534 errback(err);
535 } else {
536 each(ids, function (id) {
537 var mod = getOwn(registry, id);
538 if (mod) {
539 //Set error on module, so it skips timeout checks.
540 mod.error = err;
541 if (mod.events.error) {
542 notified = true;
543 mod.emit('error', err);
544 }
545 }
546 });
547
548 if (!notified) {
549 req.onError(err);
550 }
551 }
552 }
553
554 /**
555 * Internal method to transfer globalQueue items to this context's

Callers 4

checkLoadedFunction · 0.85
newContextFunction · 0.85
intakeDefinesFunction · 0.85
localRequireFunction · 0.85

Calls 2

eachFunction · 0.85
getOwnFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…