From 24c67328062383079ada85f4d253eb0526fd209b Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Fri, 21 Aug 2020 12:51:07 -0400 Subject: [PATCH] Revert "Improve assert.throws output" This reverts commit 2f9392f28877f9b55516e261f20c582925e2eb3f. --- harness/assert.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/harness/assert.js b/harness/assert.js index b880f56cc0..886ad8f47e 100644 --- a/harness/assert.js +++ b/harness/assert.js @@ -84,7 +84,7 @@ assert.throws = function (expectedErrorConstructor, func, message) { message += 'Thrown value was not an object!'; $ERROR(message); } else if (thrown.constructor !== expectedErrorConstructor) { - message += 'Expected a ' + expectedErrorConstructor.name + ' but got a ' + thrown.constructor.name + ' ' + thrown.message; + message += 'Expected a ' + expectedErrorConstructor.name + ' but got a ' + thrown.constructor.name; $ERROR(message); } return;