/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v25.8.2
test/sequential/test-without-async-context-frame.mjs
24 строки
704 B
Antoine du Hamel
test: ensure assertions are reachable in `test/sequential`
06 ноя 2025, 01:05
Не верифицирован
06 ноя 2025, 01:05
12e9213
Код
Авторство
О чём код?
import { isWindows } from '../common/index.mjs'; import { spawn } from 'node:child_process'; import { once } from 'node:events'; import { fileURLToPath } from 'node:url'; import assert from 'node:assert'; const python = process.env.PYTHON || (isWindows ? 'python' : 'python3'); const testRunner = fileURLToPath( new URL('../../tools/test.py', import.meta.url) ); const proc = spawn(python, [ testRunner, `--mode=${process.features.debug ? 'debug' : 'release'}`, `--shell=${process.execPath}`, '--node-args=--no-async-context-frame', '*/test-async-local-storage-*', ], { stdio: ['inherit', 'inherit', 'inherit'], }); const [code] = await once(proc, 'exit'); assert.strictEqual(code, 0);