diff options
-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 561ee826..dd4f4f37 100644 --- a/src/postamble.js +++ b/src/postamble.js @@ -30,7 +30,9 @@ Module.callMain = function callMain(args) { catch(e) { if (e.name == 'ExitStatus') { return e.status; - } else if (e !== 'SimulateInfiniteLoop') { + } else if (e == 'SimulateInfiniteLoop') { + Module['noExitRuntime'] = true; + } else { throw e; } } finally { |