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