Repository navigation
[wasm][coreclr] Shutdown runtime at the end when running on node - #121949
Merged
radekdoulik merged 1 commit intoNov 25, 2025
Merged
Conversation
radekdoulik
force-pushed
the
clr-interp-wasm-corerun-node-exit
branch
from
November 25, 2025 11:59
d4e7182 to
121895a
Compare
Contributor
|
Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov |
This makes the tests return the right exit code again, when running on Node.js.
radekdoulik
force-pushed
the
clr-interp-wasm-corerun-node-exit
branch
from
November 25, 2025 12:01
121895a to
48aeabe
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR modifies the corerun host to properly shutdown the CoreCLR runtime and return correct exit codes when running tests on Node.js, while preserving the existing behavior of keeping the runtime alive without shutdown when running in a browser environment.
Key Changes
- Added Node.js environment detection via Emscripten's
EM_ASM_INT - Refactored the conditional compilation logic to distinguish between Node.js and browser execution on the WASM/Browser target
- Enabled runtime shutdown for Node.js environments to ensure proper exit code propagation
pavelsavara
approved these changes
Nov 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This makes the tests return the right exit code again, when running on Node.js.