diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-05 16:39:54 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-05 16:40:19 -0700 |
commit | 0c6c866d47b12a14f2dc8ffee2560cd633dce93f (patch) | |
tree | b33afa229c84dc669f73cdfbaa5d5c5a3b988705 | |
parent | 3245705765916fc8cf5b61581bc4720e56166ddd (diff) |
ensure runtime initialized when dependencies have arrived, including the memory initializer
-rw-r--r-- | src/postamble.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/postamble.js b/src/postamble.js index 576366fe..833590f2 100644 --- a/src/postamble.js +++ b/src/postamble.js @@ -55,8 +55,6 @@ Module.callMain = function callMain(args) { function run(args) { args = args || Module['arguments']; - ensureInitRuntime(); - if (runDependencies > 0) { Module.printErr('run() called, but dependencies remain, so not running'); return 0; @@ -76,6 +74,8 @@ function run(args) { } function doRun() { + ensureInitRuntime(); + var ret = 0; calledRun = true; if (Module['_main']) { |