saks / lua-resty-repl

Interactive console (REPL) for Openresty and luajit code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

variables with `false` values are not accessible

saks opened this issue · comments

$ cat /tmp/1.lua

local up = false

local f = function()
    local x = false
    local y = true
    require('resty.repl').start()
end

f()
$ lua /tmp/1.lua 
[1] lua(main)> x
=> nil
[2] lua(main)> y
=> true
[3] lua(main)> up
=> nil