aboutsummaryrefslogtreecommitdiff
path: root/src/postamble.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/postamble.js')
-rw-r--r--src/postamble.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/postamble.js b/src/postamble.js
index 56f0aee1..7371ff05 100644
--- a/src/postamble.js
+++ b/src/postamble.js
@@ -53,10 +53,10 @@ if (Module['preRun']) {
#if INVOKE_RUN
#else
-Module['noInitialRun'] = true;
+addRunDependency();
#endif
-if (!Module['noInitialRun']) {
+if (runDependencies == 0) {
var ret = run();
#if CATCH_EXIT_CODE
print('Exit Status: ' + ret);