/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/specs/bench/finally_timeout/finally_timeout.ts
11 строк
206 B
David Sherret
chore: migrate bench, publish, and more itests to spec tests (#23584)
29 апр 2024, 17:08
Не верифицирован
29 апр 2024, 17:08
da52058
Код
Авторство
О чём код?
Deno.bench("error", function () { const timer = setTimeout(() => null, 10000); try { throw new Error("fail"); } finally { clearTimeout(timer); } }); Deno.bench("success", function () { });