Mercurial > prosody-hg
diff util/debug.lua @ 4778:127de6eec433
util.debug: Add +1 to level when getting locals table, to account for current function
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 28 Apr 2012 16:21:19 +0100 |
| parents | 74ae0433f8dd |
| children | bd0ff8ae98a8 |
line wrap: on
line diff
--- a/util/debug.lua Sat Apr 28 16:20:26 2012 +0100 +++ b/util/debug.lua Sat Apr 28 16:21:19 2012 +0100 @@ -97,7 +97,7 @@ levels[(level-start_level)+1] = { level = level; info = info; - locals = get_locals_table(level); + locals = get_locals_table(level+1); upvalues = get_upvalues_table(info.func); }; end
