For a given function, creates a bound function that has the same body as the original function. The this object of the bound function is associated with the specified object, and has the specified initial parameters.
method
util.CustomPromisifyLegacy.bind
@param thisArg
An object to which the this keyword can refer inside the new function.
@param argArray
A list of arguments to be passed to the new function.