aboutsummaryrefslogtreecommitdiff
path: root/src/postamble.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-10 18:22:14 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-10 18:22:14 -0800
commit99634e23408315efe0633cd1917794081f4ec4ba (patch)
treeb3539c98addcfff2fcf5b7f2c1d75c71fe9e887f /src/postamble.js
parent6e77a01fabb47edf569c517b3566d8ba6dd43480 (diff)
NO_EXIT_RUNTIME option, to set Module.noExitRuntime during compilation
Diffstat (limited to 'src/postamble.js')
-rw-r--r--src/postamble.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/postamble.js b/src/postamble.js
index 90a86474..382d3117 100644
--- a/src/postamble.js
+++ b/src/postamble.js
@@ -202,6 +202,10 @@ if (Module['noInitialRun']) {
shouldRunNow = false;
}
+#if NO_EXIT_RUNTIME
+Module["noExitRuntime"] = true;
+#endif
+
run();
// {{POST_RUN_ADDITIONS}}