diff options
author | alon@honor <none@none> | 2010-10-01 19:35:12 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-10-01 19:35:12 -0700 |
commit | 73a87bedee8b225ed76c8efebe1a032d0bf91ec5 (patch) | |
tree | a240ad01146859aacc625057d51c54fef7963512 /src/library.js | |
parent | d5ba1375e1ed15c5a3520ff6dde6f97795f5ee1a (diff) |
handle nested function calls in mathops
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 |