diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-04-29 14:33:56 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-04-29 14:33:56 -0700 |
commit | 9e8d324014afa35df05bdc70ba8f2990909b6d74 (patch) | |
tree | f22f05269eb91e2c0b4edf687fafdcb155569757 | |
parent | 066eb33d5f169c1d0e8a3eddd41b1f21ceced6c5 (diff) |
do not exit runtime if safeSetTimeout|Interval are called
-rw-r--r-- | src/library_browser.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/library_browser.js b/src/library_browser.js index 4cd8b392..5cc7e122 100644 --- a/src/library_browser.js +++ b/src/library_browser.js @@ -430,11 +430,13 @@ mergeInto(LibraryManager.library, { }); }, safeSetTimeout: function(func, timeout) { + Module['noExitRuntime'] = true; return setTimeout(function() { if (!ABORT) func(); }, timeout); }, safeSetInterval: function(func, timeout) { + Module['noExitRuntime'] = true; return setInterval(function() { if (!ABORT) func(); }, timeout); |