From 913ad50a76fb6c12f087cea6ece7c7cd5d2bb777 Mon Sep 17 00:00:00 2001 From: Valentin Hermann Date: Tue, 7 Jan 2020 15:49:43 +0100 Subject: [PATCH] Improves method messagePrefixLength. Now error messages like ReferenceError or TypeError are considered, too --- lib/jasmine-core/jasmine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index 25adbf80..f8bb0602 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -7787,7 +7787,7 @@ getJasmineRequireObj().StackTrace = function(j$) { } function messagePrefixLength(message, stackLines) { - if (!stackLines[0].match(/^Error/)) { + if (!stackLines[0].match(/^\w*Error/)) { return 0; }