aboutsummaryrefslogtreecommitdiff
path: root/src/postamble.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/postamble.js')
-rw-r--r--src/postamble.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/postamble.js b/src/postamble.js
index 8f585b86..cd892733 100644
--- a/src/postamble.js
+++ b/src/postamble.js
@@ -35,9 +35,10 @@ var preloadStartTime = null;
var calledMain = false;
var calledRun = false;
-dependenciesFulfilled = function() {
+dependenciesFulfilled = function runCaller() {
// If run has never been called, and we should call run (INVOKE_RUN is true, and Module.noInitialRun is not false)
if (!calledRun && shouldRunNow) run();
+ if (!calledRun) dependenciesFulfilled = runCaller; // try this again later, after new deps are fulfilled
}
Module['callMain'] = Module.callMain = function callMain(args) {