2018-11-22 16:41:46 +01:00
|
|
|
import { config } from './config';
|
|
|
|
import { hostReportError } from './util/hostReportError';
|
|
|
|
export const empty = {
|
|
|
|
closed: true,
|
|
|
|
next(value) { },
|
|
|
|
error(err) {
|
|
|
|
if (config.useDeprecatedSynchronousErrorHandling) {
|
|
|
|
throw err;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
hostReportError(err);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
complete() { }
|
|
|
|
};
|
2019-06-04 14:29:48 +02:00
|
|
|
//# sourceMappingURL=Observer.js.map
|