Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node: 'exit' event is emitted twice when process.exit() is called #1752

Closed
kt3k opened this issue Dec 23, 2021 · 1 comment · Fixed by #1753
Closed

node: 'exit' event is emitted twice when process.exit() is called #1752

kt3k opened this issue Dec 23, 2021 · 1 comment · Fixed by #1753
Assignees

Comments

@kt3k
Copy link
Member

kt3k commented Dec 23, 2021

$ deno repl --unstable --compat
Deno 1.17.0+ac06797
exit using ctrl+d or close()
> process.on("exit", () => console.log("exit")); process.exit();
exit
exit

This causes npm error at exit

@bartlomieju
Copy link
Member

I think I know what's the problem. I'll look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants