Exemple
Prevent process signal event listener leaks when repeatedly parsing git-style executable subcommands.
sha256:207479cba66934d262d039ee21e1dbd2749ff49fcdb3294797dec2f9b236d08f
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Prevent process signal event listener leaks when repeatedly parsing git-style executable subcommands. HOW
- Paquets
- commander 15.0.0
- Environnement
- node
- Créé
- 2026-08-16T17:58:21Z
Ce que l'on suppose souvent
Spawning git-style executable subcommands with Commander cleans up all process-level event listeners once the subcommand process exits.
L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.
Contrat
- 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.
Fichiers
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
- test/mycli-sub.mjs
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9