Skip to content

Conversation

@radekdoulik
Copy link
Member

Also update the template tests to test that it propagates correctly as
an exit code from the node process.

Also update the template tests to test that it propagates correctly as
an exit code from the node process.
@ghost
Copy link

ghost commented Jul 21, 2022

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@ghost
Copy link

ghost commented Jul 21, 2022

Tagging subscribers to this area: @directhex
See info in area-owners.md if you want to be subscribed.

Issue Details

Also update the template tests to test that it propagates correctly as
an exit code from the node process.

Author: radekdoulik
Assignees: radekdoulik
Labels:

area-Infrastructure-mono

Milestone: -

@radekdoulik radekdoulik added this to the 7.0.0 milestone Jul 21, 2022
INTERNAL.mono_wasm_set_runtime_options(runArgs.runtimeArgs);

Object.assign(App, { MONO, BINDING, IMPORTS, Module, runArgs });
Object.assign(App, { MONO, INTERNAL, BINDING, IMPORTS, Module, runArgs });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is needed here: https://github.com/dotnet/runtime/blob/main/src/mono/wasm/templates/templates/console/app-support.mjs#L49-L66

Without it, we don't call mono_wasm_exit and the exit code would be always 0.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably remove that if (App && App.INTERNAL) { check anyway. It was useful in test-main.js, but not here, IIUC. Can we done in a follow up PR though.

@radical radical merged commit 4cadf9a into dotnet:main Jul 22, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Aug 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants