aboutsummaryrefslogtreecommitdiff
path: root/src/postamble.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-19 17:58:08 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-05-19 18:27:44 -0700
commitc8c06e2c085596e82c16b6e289fc8df31b50b696 (patch)
treec8dff568fae3d74f85deab5e84438571a0109ee1 /src/postamble.js
parentcd2fc719f8501a9575dddd2a65c44384453a4177 (diff)
export callMain through closure
Diffstat (limited to 'src/postamble.js')
-rw-r--r--src/postamble.js4
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();
}