/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/testdata/node/unhandled_rejection_web.ts
17 строк
346 B
Matt Mastracci
chore: move cli/tests/ -> tests/ (#22369)
10 фев 2024, 23:22
Не верифицирован
10 фев 2024, 23:22
f5e46c9
Код
Авторство
О чём код?
import chalk from "npm:chalk"; console.log(chalk.red("Hello world!")); globalThis.addEventListener("unhandledrejection", (e) => { console.log("Handled the promise rejection"); e.preventDefault(); }); // deno-lint-ignore require-await (async () => { throw new Error("boom!"); })(); setTimeout(() => { console.log("Success"); }, 1000);