mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
16 lines
389 B
JavaScript
16 lines
389 B
JavaScript
|
|
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() { }
|
||
|
|
};
|
||
|
|
//# sourceMappingURL=Observer.js.map
|