diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-05-25 01:26:06 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-05-25 01:26:06 +0800 |
commit | 119356b81ec3d505464171abd35ca3d91e25b8c1 (patch) | |
tree | c26c98977192d3ce40c4284abf7d33e213afe5c7 /script/vm | |
parent | d436ebaba20ffc31c3fc807af55fb4ff40fe65ab (diff) | |
download | lua-language-server-119356b81ec3d505464171abd35ca3d91e25b8c1.zip |
fix #1141
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/generic.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/generic.lua b/script/vm/generic.lua index 6462028e..fafda518 100644 --- a/script/vm/generic.lua +++ b/script/vm/generic.lua @@ -15,6 +15,9 @@ mt.type = 'generic' ---@param resolved? table<string, vm.node> ---@return parser.object | vm.node local function cloneObject(source, resolved) + if not source then + return nil + end if not resolved then return source end |