diff options
author | Alon Zakai <azakai@mozilla.com> | 2010-11-05 20:48:19 -0700 |
---|---|---|
committer | Alon Zakai <azakai@mozilla.com> | 2010-11-05 20:48:19 -0700 |
commit | 906a8745c2a70d3bf797bce28c5c0ba055f8b98a (patch) | |
tree | 98df65205fea7e448f12df4afb5674dea8af5936 /src/postamble.js | |
parent | 093bfe5c5ac4c9713250dc7da75e5c20022bbe01 (diff) |
framework for integration tests
Diffstat (limited to 'src/postamble.js')
-rw-r--r-- | src/postamble.js | 11 |
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__(); } } |