diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-22 11:41:25 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-22 11:41:25 -0700 |
commit | b040c0d6d4896017b1af268d0c89b7575cf3b343 (patch) | |
tree | 622af474d68bd6a19082b4f67e417b38b5857ded /src/postamble.js | |
parent | afc0d5e5cc216043345c3cc6b51af6f0a0772308 (diff) |
remove --pre-run option in file packager, handle all that automatically
Diffstat (limited to 'src/postamble.js')
-rw-r--r-- | src/postamble.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/postamble.js b/src/postamble.js index d64fb220..63495914 100644 --- a/src/postamble.js +++ b/src/postamble.js @@ -33,12 +33,11 @@ ExitStatus.prototype.constructor = ExitStatus; var initialStackTop; var preloadStartTime = null; var calledMain = false; -var calledRun = false; dependenciesFulfilled = function runCaller() { // If run has never been called, and we should call run (INVOKE_RUN is true, and Module.noInitialRun is not false) - if (!calledRun && shouldRunNow) run(); - if (!calledRun) dependenciesFulfilled = runCaller; // try this again later, after new deps are fulfilled + if (!Module['calledRun'] && shouldRunNow) run(); + if (!Module['calledRun']) dependenciesFulfilled = runCaller; // try this again later, after new deps are fulfilled } Module['callMain'] = Module.callMain = function callMain(args) { @@ -128,7 +127,7 @@ function run(args) { preMain(); - calledRun = true; + Module['calledRun'] = true; if (Module['_main'] && shouldRunNow) { Module['callMain'](args); } |