/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/unit_node/testdata/child_process_unref.js
10 строк
301 B
Matt Mastracci
chore: move cli/tests/ -> tests/ (#22369)
10 фев 2024, 23:22
Не верифицирован
10 фев 2024, 23:22
f5e46c9
Код
Авторство
О чём код?
import cp from "node:child_process"; import * as path from "node:path"; import { fileURLToPath } from "node:url"; const script = path.join( path.dirname(fileURLToPath(import.meta.url)), "infinite_loop.js", ); const childProcess = cp.spawn(Deno.execPath(), ["run", script]); childProcess.unref();