Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

canReportError.js 478B

1234567891011121314151617
  1. import { Subscriber } from '../Subscriber';
  2. export function canReportError(observer) {
  3. while (observer) {
  4. const { closed, destination, isStopped } = observer;
  5. if (closed || isStopped) {
  6. return false;
  7. }
  8. else if (destination && destination instanceof Subscriber) {
  9. observer = destination;
  10. }
  11. else {
  12. observer = null;
  13. }
  14. }
  15. return true;
  16. }
  17. //# sourceMappingURL=canReportError.js.map