diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-05-09 21:36:08 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-05-09 21:36:08 -0700 |
commit | a7ef69ec6fd292e2252424743b0a0dc9ed67f89f (patch) | |
tree | 1dcce3efe4b46c68c3a1dfb3625e6b1b2c6d6701 /src/postamble.js | |
parent | bb9317e1eb68a975cb9462d0cd61c62ff6061a49 (diff) |
allow adding runDependencies in preRun
Diffstat (limited to 'src/postamble.js')
-rw-r--r-- | src/postamble.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/postamble.js b/src/postamble.js index cf863669..24b8e4a1 100644 --- a/src/postamble.js +++ b/src/postamble.js @@ -38,6 +38,11 @@ function run(args) { if (Module['preRun']) { Module['preRun'](); + if (runDependencies > 0) { + // preRun added a dependency, run will be called later + Module['preRun'] = null; + return 0; + } } var ret = null; |