diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-06-17 13:55:45 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-06-17 13:55:45 -0700 |
commit | 1325723c82ff8cacdbe9dd3b493b1dd304ed84a8 (patch) | |
tree | 25e2ceb250ccc81c0d571409151433a063281321 /src/shell.js | |
parent | 81404885333898b87da39c074b33ed70f327ea63 (diff) |
allow multiple preRun/postRun
Diffstat (limited to 'src/shell.js')
-rw-r--r-- | src/shell.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shell.js b/src/shell.js index e48be3b0..754cdb8e 100644 --- a/src/shell.js +++ b/src/shell.js @@ -119,6 +119,10 @@ if (!Module['arguments']) { Module.print = Module['print']; Module.printErr = Module['printErr']; +// Callbacks +if (!Module['preRun']) Module['preRun'] = []; +if (!Module['postRun']) Module['postRun'] = []; + {{BODY}} // {{MODULE_ADDITIONS}} |