aboutsummaryrefslogtreecommitdiff
path: root/src/postamble.js
diff options
context:
space:
mode:
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']();
+}
+