use @diagnostic comments to reduce warning spam in console

This commit is contained in:
2025-10-03 15:03:44 -04:00
parent 74745108b6
commit 67118ab26c
2 changed files with 15 additions and 4 deletions

View File

@@ -446,7 +446,7 @@ local tsMeta = {
elseif name:find('::') then
local ns, rest = name:match('^([^:]+)::(.+)$')
if not ns then error('ts index: invalid name \''..name..'\'', 2) end
if not rest:find('::') and tsIsFunction(ns, rest) then
if not rest:find('::') and tsIsFunction(ns, rest) then -- tsIsFunction is only defined with one argument
error('ts index: can\'t call a namespaced function from lua', 2)
else
return valFromTs(_bllua_ts.getvar(name), name)