Can a JavaScript bound function be inspected somehow?
I need to be able to return a bound function from a function, and when unit testing, I'd like to verify the bound function's target, boundThis, and boundArgs. These properties seem to be internal objects in ECMAScript and aren't accessible in the program.
Is there a way to access them? Maybe someone has developed a module that patches Function.prototype.bind() to meet these requirements?