Permalink
Browse files

show js stack in C assertions

  • Loading branch information...
1 parent 3c0ad89 commit 55cabe1fe0bee79f8d992954d9ece1245e1f01b9 @kripken committed Dec 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/library.js
View
@@ -4768,11 +4768,11 @@ LibraryManager.library = {
__assert_fail: function(condition, file, line) {
ABORT = true;
- throw 'Assertion failed: ' + Pointer_stringify(condition);//JSON.stringify(arguments)//condition;
+ throw 'Assertion failed: ' + Pointer_stringify(condition) + ' at ' + new Error().stack;
},
__assert_func: function(filename, line, func, condition) {
- throw 'Assertion failed: ' + (condition ? Pointer_stringify(condition) : 'unknown condition') + ', at: ' + [filename ? Pointer_stringify(filename) : 'unknown filename', line, func ? Pointer_stringify(func) : 'unknown function'];
+ throw 'Assertion failed: ' + (condition ? Pointer_stringify(condition) : 'unknown condition') + ', at: ' + [filename ? Pointer_stringify(filename) : 'unknown filename', line, func ? Pointer_stringify(func) : 'unknown function'] + ' at ' + new Error().stack;
},
__cxa_guard_acquire: function(variable) {

0 comments on commit 55cabe1

Please sign in to comment.