aboutsummaryrefslogtreecommitdiff
path: root/src/postamble.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-09-07 17:30:37 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-09-07 17:30:37 -0700
commit94a94998ee869205642cd926bcc452e886537058 (patch)
tree173973cf8d3ce9bfebc3915d24984442516108a8 /src/postamble.js
parent676de1e2bed5a11ae70eb92ba58be4e8d2bbf7de (diff)
run all available preRuns before checking if run must be delayed
Diffstat (limited to 'src/postamble.js')
-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;
}
}