diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-22 00:56:51 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-22 00:56:51 +0800 |
commit | bac01d19d230594106cca59ff8abbd294a17ced4 (patch) | |
tree | 1a62ae52d626fc0b749759d32c9386a841eabe1f /script/vm | |
parent | 533b04430eb34dbfb2e59f6f8d88f127e69ed133 (diff) | |
download | lua-language-server-bac01d19d230594106cca59ff8abbd294a17ced4.zip |
reset local
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/compiler.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index c8dfaf9a..c83262ab 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -13,7 +13,6 @@ local vm = require 'vm.vm' ---@class parser.object ---@field _compiledNodes boolean ---@field _node vm.node ----@field _localBase table ---@field _globalBase table local searchFieldSwitch = util.switch() @@ -933,7 +932,7 @@ local compilerSwitch = util.switch() local runner = vm.createRunner(source) runner:launch(function (src, node) if src.type == 'setlocal' then - if src.value and not hasMark then + if src.value then if src.value.type == 'table' then vm.setNode(src, src.value) else |