1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/cli/tests/test/finally_timeout.ts
2021-06-29 15:40:16 +02:00

11 lines
204 B
TypeScript

Deno.test("error", function () {
const timer = setTimeout(() => null, 10000);
try {
throw new Error("fail");
} finally {
clearTimeout(timer);
}
});
Deno.test("success", function () {
});