diff options
Diffstat (limited to 'node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js')
| -rw-r--r-- | node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js b/node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js new file mode 100644 index 0000000..9ce5f56 --- /dev/null +++ b/node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js @@ -0,0 +1,14 @@ +import { config } from '../config'; +import { timeoutProvider } from '../scheduler/timeoutProvider'; +export function reportUnhandledError(err) { + timeoutProvider.setTimeout(() => { + const { onUnhandledError } = config; + if (onUnhandledError) { + onUnhandledError(err); + } + else { + throw err; + } + }); +} +//# sourceMappingURL=reportUnhandledError.js.map
\ No newline at end of file |
