-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
@swc/wasm delaying process shutdown #1352
Comments
I think this may be a wasm problem, wasm needs to be read, loaded and parsed asynchronously, and perhaps this process cannot be interrupted |
I don't think that is the issue, because I can invoke Here is the updated reproduction. It uses
Sample output:
|
It looks like it's been greatly improved in Node.js 18.3.0, so you can try it out. |
Describe the bug
@swc/wasm appears to delay the graceful shutdown of a node process once it's loaded.
Input code
The node process remains running for about 5 seconds after the log statement. I'm not sure if @swc/wasm is setting some sort of timer or why the process is staying up.
Expected behavior
node process gracefully terminates immediately after the log statement.
Version
The version of @swc/wasm: 1.2.45
OS: Ubuntu Linux
node: v14.15.3
The text was updated successfully, but these errors were encountered: