/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/unit/ref_unref_test.ts
12 строк
485 B
Kenta Moriuchi
chore: Happy New Year 2026 (#31748)
08 янв 2026, 18:28
Не верифицирован
08 янв 2026, 18:28
8193cf9
Код
Авторство
О чём код?
// Copyright 2018-2026 the Deno authors. MIT license. import { assertNotEquals, execCode } from "./test_util.ts"; Deno.test("[unrefOpPromise] unref'ing invalid ops does not have effects", async () => { const [statusCode, _] = await execCode(` Deno[Deno.internal].core.unrefOpPromise(new Promise(r => null)); setTimeout(() => { throw new Error() }, 10) `); // Invalid unrefOpPromise call doesn't affect exit condition of event loop assertNotEquals(statusCode, 0); });