aboutsummaryrefslogtreecommitdiff
path: root/src/postamble.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-02-05 13:33:20 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-02-05 13:33:20 -0800
commitc161ef0fe82c320b367bc29cd1ba14cd9f90206e (patch)
treeada0a2ed3c1304d285a885684e293c7e9dab8c2d /src/postamble.js
parentb8a79ced1fa51e6feb772702057375b71344f5e5 (diff)
add preRun and postRun hooks in Module, and tweak FS initialization
Diffstat (limited to 'src/postamble.js')
-rw-r--r--src/postamble.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/postamble.js b/src/postamble.js
index ada13016..390f9f27 100644
--- a/src/postamble.js
+++ b/src/postamble.js
@@ -45,6 +45,10 @@ Module['run'] = run;
// {{PRE_RUN_ADDITIONS}}
+if (Module['preRun']) {
+ Module['preRun']();
+}
+
#if INVOKE_RUN
#else
Module['noInitialRun'] = true;
@@ -59,3 +63,7 @@ if (!Module['noInitialRun']) {
// {{POST_RUN_ADDITIONS}}
+if (Module['postRun']) {
+ Module['postRun']();
+}
+