aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index 66b0ef26..b63ac955 100644
--- a/src/library.js
+++ b/src/library.js
@@ -3712,6 +3712,11 @@ LibraryManager.library = {
__exit(status);
},
+ _ZSt9terminatev__deps: ['exit'],
+ _ZSt9terminatev: function() {
+ _exit(-1234);
+ },
+
atexit: function(func, arg) {
__ATEXIT__.unshift({ func: func, arg: arg });
},
@@ -5077,6 +5082,10 @@ LibraryManager.library = {
_ZSt18uncaught_exceptionv: function() { // std::uncaught_exception()
return !!__ZSt18uncaught_exceptionv.uncaught_exception;
},
+ __cxa_uncaught_exception__deps: ['_Zst18uncaught_exceptionv'],
+ __cxa_uncaught_exception: function() {
+ return !!__ZSt18uncaught_exceptionv.uncaught_exception;
+ },
__cxa_call_unexpected: function(exception) {
Module.printErr('Unexpected exception thrown, this is not properly supported - aborting');