Skip to main content

Aliases

  • hookfunc
  • replaceclosure
  • detourfunction
  • detour_function

Argumentos

function
obrigatório
Function que receberá patch. Passar uma non-function gera um type error.
function
obrigatório
Function cuja function é install ou map em target. Passar uma non-function gera um type error.

Retornos

function
Cloned copy da original target closure criada antes de instalar o hook.

Exemplo

Patch a function closure and keep a cloned original.