diff options
-rw-r--r-- | src/library.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js index 7fee938f..083ec0f1 100644 --- a/src/library.js +++ b/src/library.js @@ -4745,6 +4745,10 @@ LibraryManager.library = { return 32; }, + llvm_trap: function() { + throw 'trap! ' + new Error().stack; + }, + __assert_fail: function(condition, file, line) { ABORT = true; throw 'Assertion failed: ' + Pointer_stringify(condition);//JSON.stringify(arguments)//condition; |