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 Co-authored-by: David Sanders <dsanders11@ucsbalum.com> * chore: remove interface bound checks --------- Co-authored-by: Niklas Wenzel <dev@nikwen.de> Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
This commit is contained in:
parent
3536d4976a
commit
626895848e
4 changed files with 41 additions and 5 deletions
7
spec/fixtures/api/utility-process/no-js-after-exit.js
vendored
Normal file
7
spec/fixtures/api/utility-process/no-js-after-exit.js
vendored
Normal 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');
|
Loading…
Add table
Add a link
Reference in a new issue