Improves method messagePrefixLength. Now error messages like ReferenceError or TypeError are considered, too
This commit is contained in:
@@ -7787,7 +7787,7 @@ getJasmineRequireObj().StackTrace = function(j$) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function messagePrefixLength(message, stackLines) {
|
function messagePrefixLength(message, stackLines) {
|
||||||
if (!stackLines[0].match(/^Error/)) {
|
if (!stackLines[0].match(/^\w*Error/)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user