Description

SetUpValue sets the value of a closure's upvalue. It assigns the value at the top of the stack to the upvalue and returns its name. It also pops a value from the stack. function and index are as in UpValue.

Returns an empty string and false if the index is greater than the number of upvalues.

http://www.lua.org/manual/5.2/manual.html#lua_setupvalue

SetUpValue is referenced in 1 repository

github.com/Shopify/go-lua