diff options
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js index 25ef1fb3..5038e9c4 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -1027,6 +1027,11 @@ function preMain() { } function exitRuntime() { +#if ASSERTIONS + if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) { + Module.printErr('Exiting runtime. Any attempt to access the compiled C code may fail from now. If you want to keep the runtime alive, set Module["noExitRuntime"] = true or build with -s NO_EXIT_RUNTIME=1'); + } +#endif callRuntimeCallbacks(__ATEXIT__); } |