jit.util.funcuvname
Example
Get the name of the first upvalue in hook.Add
Output: isfunction
true
Does the exact same thing as debug.getupvalue except it only returns the name, not the name and the object. The upvalue indexes also start at 0 rather than 1, so doing jit.util.funcuvname(func, 0)
will get you the same name as debug.getupvalue(func, 1)
Get the name of the first upvalue in hook.Add