function getFunctionName(aFunction) {
    var regexpResult = aFunction.toString().match(/function (\w*)/);
    if (regexpResult && regexpResult[1]) {
        return regexpResult[1];
    }
    return 'anonymous';
}
function getFunctionName(aFunction) {
    var regexpResult = aFunction.toString().match(/function (\w*)/);
    if (regexpResult && regexpResult[1]) {
        return regexpResult[1];
    }
    return 'anonymous';
}
function getFunctionName ( aFunction ) { var regexpResult = aFunction . toString ( ) . match ( / function (\w*) / ) ; if ( regexpResult && regexpResult [ 1 ] ) { return regexpResult [ 1 ] ; } return 'anonymous' ; }
Override the broken getFunctionName() method from JsUnit
This file must be loaded _after_ the jsunitCore.js
Override the broken getFunctionName () method from JsUnit This file must be loaded _after_ the jsunitCore . js
Get the name of a function