aboutsummaryrefslogtreecommitdiff
path: root/src/postamble.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-24 19:34:25 +0100
committerAlon Zakai <alonzakai@gmail.com>2012-12-07 14:23:18 -0800
commitdf6018759a472685fee5fafd188f091dab5fd4fd (patch)
tree223143ffb1dd7477a2077143fc9336244c1367e2 /src/postamble.js
parent887ef685cd7e6d9af9e45016dc6c714feaf281d3 (diff)
add asm imports and exports, hello world works
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 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
}