1
0
Fork 0

Test suite will now output thrown data if stack not available

perfodd
Mike Gerwitz 2014-01-20 22:23:22 -05:00
parent 54fec8e5c6
commit 8789be1c4a
1 changed files with 2 additions and 2 deletions

View File

@ -383,12 +383,12 @@ function outputTestFailures( failures )
cur = failures[ i ];
name = cur[ 0 ];
e = cur[ 1 ];
e = cur[ 1 ]; // ideally Error, but may not be
// output the name followed by the stack trace
testPrint(
'#' + i + ' ' + name + '\n'
+ e.stack + "\n\n"
+ ( e.stack || e ) + "\n\n"
);
}
}