mirror of
https://github.com/tc39/test262.git
synced 2025-07-08 22:54:43 +02:00
Revert "Improve assert.throws output"
This reverts commit 2f9392f28877f9b55516e261f20c582925e2eb3f.
This commit is contained in:
parent
6207a8058a
commit
24c6732806
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user