Last change
on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
410 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | import { Observer } from './types';
|
---|
| 2 | import { config } from './config';
|
---|
| 3 | import { hostReportError } from './util/hostReportError';
|
---|
| 4 |
|
---|
| 5 | export const empty: Observer<any> = {
|
---|
| 6 | closed: true,
|
---|
| 7 | next(value: any): void { /* noop */},
|
---|
| 8 | error(err: any): void {
|
---|
| 9 | if (config.useDeprecatedSynchronousErrorHandling) {
|
---|
| 10 | throw err;
|
---|
| 11 | } else {
|
---|
| 12 | hostReportError(err);
|
---|
| 13 | }
|
---|
| 14 | },
|
---|
| 15 | complete(): void { /*noop*/ }
|
---|
| 16 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.