mirror of https://github.com/tc39/test262.git
parent
6207a8058a
commit
24c6732806
|
@ -84,7 +84,7 @@ assert.throws = function (expectedErrorConstructor, func, message) {
|
||||||
message += 'Thrown value was not an object!';
|
message += 'Thrown value was not an object!';
|
||||||
$ERROR(message);
|
$ERROR(message);
|
||||||
} else if (thrown.constructor !== expectedErrorConstructor) {
|
} 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);
|
$ERROR(message);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue