Sets a captured upvalue of a function to a new value.
New to upvalues? Learn more here.
Give it a number instead of a function and it targets the closure running at that stack level.
Most commonly used to change a closure’s captured state mid-run - for example, swapping a config table for one that skips a check.
Parameters
Returns
void
Aliases
Example
Jump a closure’s captured counter to any value without calling it that many times.
Give it a number instead of a function and it targets the closure running at that stack level.