diff options
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/getDocs.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/getDocs.lua b/script/vm/getDocs.lua index 59651ee9..4aeda446 100644 --- a/script/vm/getDocs.lua +++ b/script/vm/getDocs.lua @@ -11,6 +11,9 @@ local noder = require 'core.noder' ---@param name? string ---@return parser.guide.object[] function vm.getDocDefines(uri, name) + if type(name) ~= 'string' then + return {} + end local cache = vm.getCache 'getDocDefines' if cache[name] then return cache[name] |