diff options
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; |