Removing toString() call on failAssertion(); string may be passed
parent
e0254f6441
commit
45f3d62727
|
@ -33,7 +33,7 @@ module.common = module['test/common'] = { exports: {
|
|||
|
||||
function failAssertion( err )
|
||||
{
|
||||
throw Error( 'Assertion failed: ' + err.toString() );
|
||||
throw Error( 'Assertion failed: ' + ( err || '(no failure message)' ) );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue