If I have a function like the following:
function catchUndefinedFunctionCall( name, arguments )
{
alert( name + ' is not defined' );
}
and I do something silly like
foo( 'bar' );
when foo isn't defined, is there some way I can have my catch function called, with name being 'foo' and arguments being an array containing 'bar'?