From 9e8d324014afa35df05bdc70ba8f2990909b6d74 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 29 Apr 2014 14:33:56 -0700 Subject: do not exit runtime if safeSetTimeout|Interval are called --- src/library_browser.js | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3-18-g5258