diff options
author | max99x <max99x@gmail.com> | 2011-06-24 04:10:34 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-06-24 04:10:34 +0300 |
commit | 5fa86f5cf902f6b1ae2acb31c71cd23813b720dd (patch) | |
tree | 39cf7b90fc32e57147ea421178d7e7074347bb52 /src/postamble.js | |
parent | de4df59da644e1281d06224d7c0c32b2906cf780 (diff) | |
parent | 7384e06cbdba01d4cfa83d2d770c5b4e82767e69 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/postamble.js')
-rw-r--r-- | src/postamble.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/postamble.js b/src/postamble.js index 98d8f578..9b61c0a7 100644 --- a/src/postamble.js +++ b/src/postamble.js @@ -17,7 +17,7 @@ Module.callMain = function callMain(args) { argv.push(0); argv = Pointer_make(argv, null, ALLOC_STATIC, 'i32'); - _main(argc, argv, 0); + return _main(argc, argv, 0); } function run(args) { @@ -29,10 +29,12 @@ function run(args) { __globalConstructor__(); + var ret = null; if (Module['_main']) { - Module.callMain(args); + ret = Module.callMain(args); __shutdownRuntime__(); } + return ret; } Module['run'] = run; |