emscripten-core / emscripten-core/emscripten

`addOnPostRun` does not work with `EXIT_RUNTIME` (at least not under node)

Open
#15,080 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

I think this is because EXIT_RUNTIME causes the whole process to exit before the functions registered with `addOnPostRun` get a chance to run.

Because LSan and ASan set EXIT_RUNTIME by default this means `addOnPostRun` doesn't work in `lsan` and `asan` test suites by default.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.