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;