7ddaf6007cccbd7c072fd1acab3b729768b845e51c42e81211f487f73e5c32d39b71543e3e9346d1a8f938699807c26abeb3fa43b4185650cf96f46981ea86 237 B

12345678
  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. */
  6. export function hostReportError(err: any) {
  7. setTimeout(() => { throw err; }, 0);
  8. }