diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-02-14 15:09:28 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-02-14 15:09:28 -0800 |
commit | eb56795d36b7079b3b6a627c79be10789e028dec (patch) | |
tree | 7da88dfdd90fe97783068190a914c6b7801b17c0 /src | |
parent | 84e717376a9926782b10e3f3364b014bfee88d88 (diff) | |
parent | 423519b3650d1966fd8e436065ea60f937134a4d (diff) |
Merge pull request #246 from adetaylor/atexit-fix
Fix for order in which 'atexit' registered functions are called
Diffstat (limited to 'src')
-rw-r--r-- | src/library.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js index aee4a416..e0a38817 100644 --- a/src/library.js +++ b/src/library.js @@ -3296,7 +3296,7 @@ LibraryManager.library = { }, atexit: function(func, arg) { - __ATEXIT__.push({ func: func, arg: arg }); + __ATEXIT__.unshift({ func: func, arg: arg }); }, __cxa_atexit: 'atexit', |