aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js')
-rw-r--r--node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js14
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage