offload/__test__/throw-error.worker.ts
Anton Nesterov 2d559dfb31
init
2024-10-25 23:19:39 +02:00

7 lines
164 B
TypeScript

import { handler } from "../mod.ts";
handler(async () => {
await new Promise((resolve) => setTimeout(resolve, 1000));
throw new Error("This is an error");
});