diff --git a/src/core/org/luaj/vm2/lib/DebugLib.java b/src/core/org/luaj/vm2/lib/DebugLib.java index c7735c89..81f4f7c6 100644 --- a/src/core/org/luaj/vm2/lib/DebugLib.java +++ b/src/core/org/luaj/vm2/lib/DebugLib.java @@ -700,7 +700,7 @@ public class DebugLib extends TwoArgFunction { if ( !f.isclosure() ) return f.tojstring(); return f.checkclosure().p.shortsource() + ":" + currentline(); } - private int linedefined() { + int linedefined() { return f.isclosure()? f.checkclosure().p.linedefined: -1; } LuaString getlocalname(int index) {