diff options
Diffstat (limited to 'src/postamble.js')
-rw-r--r-- | src/postamble.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/postamble.js b/src/postamble.js index 12471a19..d0b737f8 100644 --- a/src/postamble.js +++ b/src/postamble.js @@ -1,7 +1,7 @@ // === Auto-generated postamble setup entry stuff === -Module.callMain = function callMain(args) { +Module['callMain'] = function callMain(args) { assert(runDependencies == 0, 'cannot call main when async dependencies remain! (listen on __ATMAIN__)'); assert(!Module['preRun'] || Module['preRun'].length == 0, 'cannot call main when preRun functions remain to be called'); @@ -84,7 +84,7 @@ function run(args) { var ret = 0; calledRun = true; if (Module['_main'] && shouldRunNow) { - ret = Module.callMain(args); + ret = Module['callMain'](args); if (!Module['noExitRuntime']) { exitRuntime(); } |