aboutsummaryrefslogtreecommitdiff
path: root/src/postamble.js
diff options
context:
space:
mode:
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 {