Skip to content

luaUpvalueIndex

intluaUpvalueIndex(inti)

Returns the pseudo-index for an upvalue at the given index (1-based). Use this in Dart closures to access upvalues pushed before the closure.