frontend/.pnpm-store/v3/files/41/7ddaf6007cccbd7c072fd1acab3b729768b845e51c42e81211f487f73e5c32d39b71543e3e9346d1a8f938699807c26abeb3fa43b4185650cf96f46981ea86

8 lines
237 B
Plaintext

/**
* 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);
}