Debian Codegraph @

node/rxjs/dist/esm5/internal/util/reportUnhandledError.js

raw
1 import { config } from '../config';
2 import { timeoutProvider } from '../scheduler/timeoutProvider';
3 export function reportUnhandledError(err) {
4 timeoutProvider.setTimeout(function () {
5 var onUnhandledError = config.onUnhandledError;
6 if (onUnhandledError) {
7 onUnhandledError(err);
8 }
9 else {
10 throw err;
11 }
12 });
13 }
14 //# sourceMappingURL=reportUnhandledError.js.map