Revision: 43829
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 31, 2011 13:49 by uberdragon
Initial Code
function func_get_args () {
if (!arguments.callee.caller) {
try {
throw new Error('Either you are using this in a browser which does not support the "caller" property or you are calling this from a global context');
// return false;
} catch (e) {
return false;
}
}
return Array.prototype.slice.call(arguments.callee.caller.arguments);
}
Initial URL
Initial Description
Initial Title
PHP's func_get_args() for Javascript
Initial Tags
Initial Language
JavaScript