Skip to main content

Aliases

  • restorefunc
  • restoreclosure

Arguments

function
required
With one argument, the hooked function to restore. With two function arguments, the function to replace.
function
Optional closure to patch with firstFunction. This branch is used only when the second argument is a function.

Example

Restore a hooked closure to its original function.