diff options
author | alon@honor <none@none> | 2010-09-04 21:39:06 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-09-04 21:39:06 -0700 |
commit | cd668dc906a4225032273b47f4745756fa8c0aed (patch) | |
tree | 6052ba5bebb3c7eef120e53e915542ec46cad0bc /src/postamble.js | |
parent | c3d043f32921b28dee20c5b68e0c1424d266b2a3 (diff) |
atexit +test
Diffstat (limited to 'src/postamble.js')
-rw-r--r-- | src/postamble.js | 4 |
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 { |