-- print all globals visible in loaded code. if "log" is even visible inside... load("for k, v in pairs(_G) do log(k) end", "loaded code", "t", _G)()