source: trip-planner-front/node_modules/rxjs/src/internal/util/hostReportError.ts@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 237 bytes
Line 
1/**
2 * Throws an error on another job so that it's picked up by the runtime's
3 * uncaught error handling mechanism.
4 * @param err the error to throw
5 */
6export function hostReportError(err: any) {
7 setTimeout(() => { throw err; }, 0);
8}
Note: See TracBrowser for help on using the repository browser.