# HG changeset patch # User Kim Alvefur # Date 1602257644 -7200 # Node ID 28add4b22a74539edd9d27be06c91175d3752490 # Parent 1dc49accb58e9fcfcd680b5ac500acb547fe6877 util.startup: Retrieve less data for function string representation debug.getinfo(f) collects more info than what is needed here. diff -r 1dc49accb58e -r 28add4b22a74 util/startup.lua --- a/util/startup.lua Fri Oct 09 16:37:15 2020 +0200 +++ b/util/startup.lua Fri Oct 09 17:34:04 2020 +0200 @@ -197,7 +197,7 @@ end end function mt.__tostring(f) - local info = debug.getinfo(f); + local info = debug.getinfo(f, "S"); return ("function(%s:%d)"):format(info.short_src:match("[^\\/]*$"), info.linedefined); end debug.setmetatable(function() end, mt);