示例
Prevent process signal event listener leaks when repeatedly parsing git-style executable subcommands.
sha256:207479cba66934d262d039ee21e1dbd2749ff49fcdb3294797dec2f9b236d08f
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Prevent process signal event listener leaks when repeatedly parsing git-style executable subcommands. HOW
- 包
- commander 15.0.0
- 环境
- node
- 创建时间
- 2026-08-16T17:58:21Z
常见的想当然
Spawning git-style executable subcommands with Commander cleans up all process-level event listeners once the subcommand process exits.
这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。
契约
- Spawning executable subcommands in commander registers signal event listeners on the global process object that are never unregistered upon process termination, accumulating memory leaks on subsequent command invocations.
文件
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
- test/mycli-sub.mjs
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9