aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/postamble.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/postamble.js b/src/postamble.js
index c42d6794..62966d61 100644
--- a/src/postamble.js
+++ b/src/postamble.js
@@ -32,12 +32,12 @@ Module.callMain = function callMain(args) {
function run(args) {
args = args || Module['arguments'];
- initRuntime();
-
if (Module['preRun']) {
Module['preRun']();
}
+ initRuntime();
+
var ret = null;
if (Module['_main']) {
ret = Module.callMain(args);