summaryrefslogtreecommitdiff
path: root/script/vm/type.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-08-08 18:11:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2024-08-08 18:11:16 +0800
commitaaf16240f77bb75a3d8db89c2a99934c8b6022ee (patch)
tree0d55a387057c92b02a3b5f7b511105387ed236f4 /script/vm/type.lua
parente6a5b41f7424ad56a12efdf950efd2f20ad5f322 (diff)
downloadlua-language-server-aaf16240f77bb75a3d8db89c2a99934c8b6022ee.zip
fix memory leak with `---@enum(partical)`
Diffstat (limited to 'script/vm/type.lua')
-rw-r--r--script/vm/type.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/type.lua b/script/vm/type.lua
index d2a859d0..d3ce7a92 100644
--- a/script/vm/type.lua
+++ b/script/vm/type.lua
@@ -70,7 +70,7 @@ local function checkParentEnum(parentName, child, uri, mark, errs)
if enums then
enums = util.arrayMerge(enums, denums)
else
- enums = denums
+ enums = util.arrayMerge({}, denums)
end
end
end