diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-09-07 17:30:37 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-09-07 17:30:37 -0700 |
commit | 94a94998ee869205642cd926bcc452e886537058 (patch) | |
tree | 173973cf8d3ce9bfebc3915d24984442516108a8 /src/postamble.js | |
parent | 676de1e2bed5a11ae70eb92ba58be4e8d2bbf7de (diff) |
run all available preRuns before checking if run must be delayed
Diffstat (limited to 'src/postamble.js')
-rw-r--r-- | src/postamble.js | 8 |
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; } } |