(err, errback)
| 515 | } |
| 516 | |
| 517 | function onError(err, errback) { |
| 518 | var ids = err.requireModules, |
| 519 | notified = false; |
| 520 | |
| 521 | if (errback) { |
| 522 | errback(err); |
| 523 | } else { |
| 524 | each(ids, function (id) { |
| 525 | var mod = getOwn(registry, id); |
| 526 | if (mod) { |
| 527 | //Set error on module, so it skips timeout checks. |
| 528 | mod.error = err; |
| 529 | if (mod.events.error) { |
| 530 | notified = true; |
| 531 | mod.emit('error', err); |
| 532 | } |
| 533 | } |
| 534 | }); |
| 535 | |
| 536 | if (!notified) { |
| 537 | req.onError(err); |
| 538 | } |
| 539 | } |
| 540 | } |
| 541 | |
| 542 | /** |
| 543 | * Internal method to transfer globalQueue items to this context's |
no test coverage detected
searching dependent graphs…