blob: c2eaf58942a7e349ea66a1ee85179767a7f9e421 [file] [log] [blame]
// WARNING: some tests blindly set breakpoints in this file by line number.
// So, if you modify the code, make sure to adjust any createSourceCodeLocation
// calls from tests in the ../ directory. Callsites should include a description
// of the function/statement to set a breakpoint at, so that it's easy to fix them.
function callFunction(fn)
{
if (!(fn instanceof Function))
return;
var argsArray = Array.prototype.slice.call(arguments);
Array.prototype.splice.call(argsArray, 0, 1);
fn.call(this, argsArray);
}
function hook()
{
return 42;
}