fix: utilityProcess running user script after process.exit is called (#47492)

fix: utilityProcess running user script after process.exit is called (#47469)

* fix: utilityProcess running user script after process.exit is called

* docs: update breaking changes

* chore: update spec

* chore: update spec/api-utility-process-spec.ts



* chore: remove interface bound checks

---------

Co-authored-by: Robo <hop2deep@gmail.com>
Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
This commit is contained in:
Niklas Wenzel 2025-06-18 04:01:50 +02:00 committed by GitHub
commit 3ea4c6c3e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 41 additions and 5 deletions

View file

@ -0,0 +1,7 @@
const { writeFileSync } = require('node:fs');
const arg = process.argv[2];
const file = arg.split('=')[1];
writeFileSync(file, 'before exit');
process.exit(1);
writeFileSync(file, 'after exit');