diff options
author | Matthew Wild <mwild1@gmail.com> | 2020-10-16 13:44:51 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2020-10-16 13:44:51 +0100 |
commit | ae33d82d359731bb3ed25873ec28d67ff8fd7b45 (patch) | |
tree | 8ffae597ea7ccd4a350345cfa083ce54cee889fe /util/debug.lua | |
parent | 1784c121bbe28405d06488862e336d54ffe7dd90 (diff) | |
parent | 8677aeb7229ed9ddc73342ee081f5a022e964f97 (diff) | |
download | prosody-ae33d82d359731bb3ed25873ec28d67ff8fd7b45.tar.gz prosody-ae33d82d359731bb3ed25873ec28d67ff8fd7b45.zip |
Merge 0.11->trunk
Diffstat (limited to 'util/debug.lua')
-rw-r--r-- | util/debug.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/debug.lua b/util/debug.lua index 9a28395a..4c924d40 100644 --- a/util/debug.lua +++ b/util/debug.lua @@ -104,7 +104,7 @@ local function get_traceback_table(thread, start_level) levels[(level-start_level)+1] = { level = level; info = info; - locals = get_locals_table(thread, level+(thread and 0 or 1)); + locals = get_locals_table(thread, level+1); upvalues = get_upvalues_table(info.func); }; end |