From f4d757f3bd47defa21323b13e121fa12d27cb380 Mon Sep 17 00:00:00 2001 From: Andrew Bradley Date: Mon, 2 May 2022 09:13:05 -0400 Subject: [PATCH] fix bug where errors without a message would still have colon in "Error: " --- source-map-support.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source-map-support.js b/source-map-support.js index b4995ec..ad830b6 100644 --- a/source-map-support.js +++ b/source-map-support.js @@ -662,7 +662,7 @@ function createPrepareStackTrace(hookState) { } else { var name = error.name || 'Error'; var message = error.message || ''; - errorString = name + ": " + message; + errorString = message ? name + ": " + message : name; } var state = { nextPosition: null, curPosition: null };