diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-01-16 11:18:06 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-01-16 11:18:06 -0800 |
commit | 5fe3bcc54b6c7ee04d0b09cc3e44e0cd06b95405 (patch) | |
tree | 2cf6d3a26b321328941346235d0c4f7db919ab3b /src/postamble.js | |
parent | 58132ad51111bcb024f7a9f2bdce970324c05e00 (diff) |
refactor runtime init and exit code
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 0e295171..27242363 100644 --- a/src/postamble.js +++ b/src/postamble.js @@ -32,12 +32,12 @@ Module.callMain = function callMain(args) { function run(args) { args = args || Module['arguments']; - __globalConstructor__(); + initRuntime(); var ret = null; if (Module['_main']) { ret = Module.callMain(args); - __shutdownRuntime__(); + exitRuntime(); } return ret; } |