aboutsummaryrefslogtreecommitdiff
path: root/src/postamble.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2010-11-05 20:48:19 -0700
committerAlon Zakai <azakai@mozilla.com>2010-11-05 20:48:19 -0700
commit906a8745c2a70d3bf797bce28c5c0ba055f8b98a (patch)
tree98df65205fea7e448f12df4afb5674dea8af5936 /src/postamble.js
parent093bfe5c5ac4c9713250dc7da75e5c20022bbe01 (diff)
framework for integration tests
Diffstat (limited to 'src/postamble.js')
-rw-r--r--src/postamble.js11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/postamble.js b/src/postamble.js
index fb552606..066b83e3 100644
--- a/src/postamble.js
+++ b/src/postamble.js
@@ -37,14 +37,9 @@ function run(args) {
__globalConstructor__();
- _main(argc, argv);
-
- while( __ATEXIT__.length > 0) {
- var func = __ATEXIT__.pop();
- if (typeof func === 'number') {
- func = FUNCTION_TABLE[func];
- }
- func();
+ if (Module['_main']) {
+ _main(argc, argv);
+ __shutdownRuntime__();
}
}