aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-03-03 14:24:26 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-03-03 14:24:26 -0800
commit2e2a9c1a768dabbdc0eb48a01638b32c55f1073a (patch)
treeb68ee979c1811c930374a8100938d1d8f91dbb8d
parentdc769bd62f7e315708132e6c4eee01fa98d12d51 (diff)
add noExitRuntime option
-rw-r--r--src/postamble.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/postamble.js b/src/postamble.js
index 390f9f27..56f0aee1 100644
--- a/src/postamble.js
+++ b/src/postamble.js
@@ -37,7 +37,9 @@ function run(args) {
var ret = null;
if (Module['_main']) {
ret = Module.callMain(args);
- exitRuntime();
+ if (!Module['noExitRuntime']) {
+ exitRuntime();
+ }
}
return ret;
}