Revert "Improve assert.throws output"

This reverts commit 2f9392f288.
This commit is contained in:
Richard Gibson 2020-08-21 12:51:07 -04:00 committed by Rick Waldron
parent 6207a8058a
commit 24c6732806
1 changed files with 1 additions and 1 deletions

View File

@ -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;