Debian Codegraph @

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

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