aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/postamble.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/postamble.js b/src/postamble.js
index e1dd495a..4796fee3 100644
--- a/src/postamble.js
+++ b/src/postamble.js
@@ -36,10 +36,10 @@ function run(args) {
if (typeof Module['preRun'] == 'function') Module['preRun'] = [Module['preRun']];
while (Module['preRun'].length > 0) {
Module['preRun'].pop()();
- if (runDependencies > 0) {
- // preRun added a dependency, run will be called later
- return 0;
- }
+ }
+ if (runDependencies > 0) {
+ // a preRun added a dependency, run will be called later
+ return 0;
}
}