mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
e0b9c745c1
This PR is part of #22907 --------- Signed-off-by: HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
11 lines
204 B
TypeScript
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 () {
|
|
});
|