diff options
Diffstat (limited to 'src/library.js')
-rw-r--r-- | src/library.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js index c7fe551b..b2106288 100644 --- a/src/library.js +++ b/src/library.js @@ -514,8 +514,8 @@ var Library = { throw 'exit(' + status + ') called, at ' + new Error().stack; }, - atexit: function(func) { - __ATEXIT__.push(func); + atexit: function(func, arg) { + __ATEXIT__.push({ func: func, arg: arg }); }, __cxa_atexit: 'atexit', |