blob: 08819b51cbf3a77fffa29398f2da02c84ae0733c [file] [log] [blame]
import { Subscriber } from '../Subscriber';
export function canReportError(observer) {
while (observer) {
const { closed, destination, isStopped } = observer;
if (closed || isStopped) {
return false;
}
else if (destination && destination instanceof Subscriber) {
observer = destination;
}
else {
observer = null;
}
}
return true;
}
//# sourceMappingURL=canReportError.js.map