Revert "Improves method messagePrefixLength. Now error messages like ReferenceError or TypeError are considered, too"

This reverts commit 913ad50a76.
This commit is contained in:
Valentin Hermann
2020-01-08 08:47:08 +01:00
parent 913ad50a76
commit e02c24d151

View File

@@ -7787,7 +7787,7 @@ getJasmineRequireObj().StackTrace = function(j$) {
}
function messagePrefixLength(message, stackLines) {
if (!stackLines[0].match(/^\w*Error/)) {
if (!stackLines[0].match(/^Error/)) {
return 0;
}