aboutsummaryrefslogtreecommitdiff
path: root/src/preamble.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-05-09 21:36:08 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-05-09 21:36:08 -0700
commita7ef69ec6fd292e2252424743b0a0dc9ed67f89f (patch)
tree1dcce3efe4b46c68c3a1dfb3625e6b1b2c6d6701 /src/preamble.js
parentbb9317e1eb68a975cb9462d0cd61c62ff6061a49 (diff)
allow adding runDependencies in preRun
Diffstat (limited to 'src/preamble.js')
-rw-r--r--src/preamble.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js
index e9ba2009..997e5ab3 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -854,6 +854,9 @@ var STRING_TABLE = [];
// do asynchronous work before running, increment this and
// decrement it. Incrementing must happen in a place like
// PRE_RUN_ADDITIONS (used by emcc to add file preloading).
+// Note that you can add dependencies in preRun, even though
+// it happens right before run - run will be postponed until
+// the dependencies are met.
var runDependencies = 0;
function addRunDependency() {
runDependencies++;