Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
478 bytes
|
Line | |
---|
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 |
---|
Note:
See
TracBrowser
for help on using the repository browser.