This commit is contained in:
Miku AuahDark
2024-12-21 11:54:40 +08:00
parent 7c48a650bd
commit 064aeeb377
91 changed files with 671 additions and 856 deletions
+6 -1
View File
@@ -552,7 +552,12 @@ local recdepth = 0
local function fmterr(err, info)
if type(err) == "number" then
if type(info) == "function" then info = fmtfunc(info) end
err = format(vmdef.traceerr[err], info)
local fmt = vmdef.traceerr[err]
if fmt == "NYI: bytecode %s" then
local oidx = 6 * info
info = sub(vmdef.bcnames, oidx+1, oidx+6)
end
err = format(fmt, info)
end
return err
end