Debugdebug.getupvalue
Debug

debug.getupvalue

Retrieves one captured upvalue.

Related to sUNC documentation

This page follows the official sUNC reference.

Signature

Luau
function debug.getupvalue(func: (...any) -> (...any) | number, index: number): any

Returns

The selected upvalue.