Error => TypeError, manual
parent
97036e4c88
commit
f874a48a55
|
@ -590,7 +590,7 @@ an instance of @var{Dog}. It doesn't matter what instance of @var{Dog} - be it a
|
||||||
// ensure that we are given an instance of Dog
|
// ensure that we are given an instance of Dog
|
||||||
if ( Class.isA( Dog, dog ) === false )
|
if ( Class.isA( Dog, dog ) === false )
|
||||||
{
|
{
|
||||||
throw Error( "Expected instance of Dog" );
|
throw TypeError( "Expected instance of Dog" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Reference in New Issue