diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-24 19:34:25 +0100 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 14:23:18 -0800 |
commit | df6018759a472685fee5fafd188f091dab5fd4fd (patch) | |
tree | 223143ffb1dd7477a2077143fc9336244c1367e2 /src/postamble.js | |
parent | 887ef685cd7e6d9af9e45016dc6c714feaf281d3 (diff) |
add asm imports and exports, hello world works
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 144b5af9..83a4daa6 100644 --- a/src/postamble.js +++ b/src/postamble.js @@ -19,11 +19,11 @@ Module.callMain = function callMain(args) { #if CATCH_EXIT_CODE try { - return _main(argc, argv, 0); + return Module['_main'](argc, argv, 0); } catch(e) { if (e.name == "ExitStatus") return e.status; throw e; } #else - return _main(argc, argv, 0); + return Module['_main'](argc, argv, 0); #endif } |