diff options
Diffstat (limited to 'src/postamble.js')
-rw-r--r-- | src/postamble.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/postamble.js b/src/postamble.js index 1f4c9c04..cf863669 100644 --- a/src/postamble.js +++ b/src/postamble.js @@ -40,10 +40,9 @@ function run(args) { Module['preRun'](); } - initRuntime(); - var ret = null; if (Module['_main']) { + preMain(); ret = Module.callMain(args); if (!Module['noExitRuntime']) { exitRuntime(); @@ -60,6 +59,8 @@ Module['run'] = run; // {{PRE_RUN_ADDITIONS}} +initRuntime(); + #if INVOKE_RUN #else addRunDependency(); |