Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / rxjs / src / internal / util / hostReportError.ts
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/src/internal/util/hostReportError.ts b/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/src/internal/util/hostReportError.ts
new file mode 100644 (file)
index 0000000..6d0082a
--- /dev/null
@@ -0,0 +1,8 @@
+/**
+ * Throws an error on another job so that it's picked up by the runtime's
+ * uncaught error handling mechanism.
+ * @param err the error to throw
+ */
+export function hostReportError(err: any) {
+  setTimeout(() => { throw err; }, 0);
+}
\ No newline at end of file