Aliases
hookfunc
replaceclosure
detourfunction
detour_function
Argumentos
Function que receberá patch. Passar uma non-function gera um type error.
Function cuja function é install ou map em target. Passar uma non-function gera um type error.
Retornos
Cloned copy da original target closure criada antes de instalar o hook.
Exemplo
Patch a function closure and keep a cloned original.