aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-24 11:38:08 -0700
committeralon@honor <none@none>2010-10-24 11:38:08 -0700
commitfa7440b389910fefe7b3ea713a21b8a6b44daa6f (patch)
tree995a000499b75bef6a72bc2d97d778cfc6abb373 /src/library.js
parent6cc0726f3cac4473eb0ac8bfadaf429a14d472c4 (diff)
add nonvirtual part to polymorph test; fails in clang
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index 2dde32d3..896aae38 100644
--- a/src/library.js
+++ b/src/library.js
@@ -35,6 +35,7 @@ var Library = {
__cxa_atexit: 'atexit',
abort: function(code) {
+ ABORT = true;
throw 'ABORT: ' + code + ', at ' + (new Error().stack);
},
@@ -119,6 +120,7 @@ var Library = {
// LLVM specifics
__assert_fail: function(condition, file, line) {
+ ABORT = true;
throw 'Assertion failed: ' + Pointer_stringify(condition);//JSON.stringify(arguments)//condition;
},
@@ -137,6 +139,7 @@ var Library = {
},
__cxa_call_unexpected: function(exception) {
+ ABORT = true;
throw exception;
},
@@ -166,6 +169,7 @@ var Library = {
},
__cxa_pure_virtual: function() {
+ ABORT = true;
throw 'Pure virtual function called!';
},