Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

hostReportError.ts 237B

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. }