aboutsummaryrefslogtreecommitdiff
path: root/src/postamble.js
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-09-04 21:39:06 -0700
committeralon@honor <none@none>2010-09-04 21:39:06 -0700
commitcd668dc906a4225032273b47f4745756fa8c0aed (patch)
tree6052ba5bebb3c7eef120e53e915542ec46cad0bc /src/postamble.js
parentc3d043f32921b28dee20c5b68e0c1424d266b2a3 (diff)
atexit +test
Diffstat (limited to 'src/postamble.js')
-rw-r--r--src/postamble.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/postamble.js b/src/postamble.js
index fe5d91f9..f65d51d1 100644
--- a/src/postamble.js
+++ b/src/postamble.js
@@ -12,6 +12,10 @@ function run(args) {
__globalConstructor__();
_main(argc, argv);
+
+ while( __ATEXIT__.length > 0) {
+ __ATEXIT__.pop()();
+ }
}
try {