/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/unit_node/testdata/process_exit.ts
19 строк
372 B
Matt Mastracci
chore: move cli/tests/ -> tests/ (#22369)
10 фев 2024, 23:22
Не верифицирован
10 фев 2024, 23:22
f5e46c9
Код
Авторство
О чём код?
import process from "node:process"; //deno-lint-ignore no-undef process.on("exit", () => { console.log(1); }); function unexpected() { console.log(null); } //deno-lint-ignore no-undef process.on("exit", unexpected); //deno-lint-ignore no-undef process.removeListener("exit", unexpected); //deno-lint-ignore no-undef process.on("exit", () => { console.log(2); });