You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Track upvalue names in prototypes (for debug.getupvalue / setupvalue) #256
debug.getupvalue(f, n) and debug.setupvalue(f, n, v) are stubbed to return nil. Implementing them requires knowing the name of each upvalue, which the compiler currently does not store on the %Prototype{}. As a result locals.lua is fully deferred — it expects debug.getupvalue(load"a=3", 1) to return ("_ENV", ...).
Scope
Extend %Lua.Compiler.Prototype{} with upvalue_names :: [String.t()]. Populate from state.functions[func_key].upvalue_descriptors in lib/lua/compiler/scope.ex (each descriptor already knows the source name).
Activity