Test suite will now output thrown data if stack not available
parent
54fec8e5c6
commit
8789be1c4a
|
@ -383,12 +383,12 @@ function outputTestFailures( failures )
|
||||||
cur = failures[ i ];
|
cur = failures[ i ];
|
||||||
|
|
||||||
name = cur[ 0 ];
|
name = cur[ 0 ];
|
||||||
e = cur[ 1 ];
|
e = cur[ 1 ]; // ideally Error, but may not be
|
||||||
|
|
||||||
// output the name followed by the stack trace
|
// output the name followed by the stack trace
|
||||||
testPrint(
|
testPrint(
|
||||||
'#' + i + ' ' + name + '\n'
|
'#' + i + ' ' + name + '\n'
|
||||||
+ e.stack + "\n\n"
|
+ ( e.stack || e ) + "\n\n"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue