diff options
Diffstat (limited to 'src/library.js')
-rw-r--r-- | src/library.js | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/library.js b/src/library.js index f25d4a9c..a6fbcf02 100644 --- a/src/library.js +++ b/src/library.js @@ -115,12 +115,16 @@ var Library = { } }, + isdigit: function(chr) { + return chr >= '0'.charCodeAt(0) && chr <= '9'.charCodeAt(0); + }, + + // LLVM specifics + __assert_fail: function(condition, file, line) { throw 'Assertion failed: ' + Pointer_stringify(condition);//JSON.stringify(arguments)//condition; }, - // Threading stuff LLVM adds sometimes - __cxa_guard_acquire: function() { return 0; }, @@ -134,8 +138,15 @@ var Library = { } }, - isdigit: function(chr) { - return chr >= '0'.charCodeAt(0) && chr <= '9'.charCodeAt(0); + llvm_eh_exception: function() { + return Error(); + }, + + llvm_eh_selector: function(exception, personality, num) { + }, + + __cxa_call_unexpected: function(exception) { + throw exception; }, // iostream |