If I have a function like the following:
function catchUndefinedFunctionCall( name, arguments ) { alert( name + \' is not defined\' ); }
an
try { foo(); } catch(e) { callUndefinedFunctionCatcher(e.arguments); }
UPDATED
passing e.arguments to your function will give you what you tried to pass originally.
e.arguments