diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-03 14:24:26 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-03 14:24:26 -0800 |
commit | 2e2a9c1a768dabbdc0eb48a01638b32c55f1073a (patch) | |
tree | b68ee979c1811c930374a8100938d1d8f91dbb8d /src | |
parent | dc769bd62f7e315708132e6c4eee01fa98d12d51 (diff) |
add noExitRuntime option
Diffstat (limited to 'src')
-rw-r--r-- | src/postamble.js | 4 |
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; } |