summaryrefslogtreecommitdiff
path: root/server/src/core/vm.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/core/vm.lua')
-rw-r--r--server/src/core/vm.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/core/vm.lua b/server/src/core/vm.lua
index 34df77a8..f4ab6091 100644
--- a/server/src/core/vm.lua
+++ b/server/src/core/vm.lua
@@ -1491,6 +1491,11 @@ local function compile(ast, lsp, uri)
-- 执行代码
vm:doActions(ast)
+ vm.scope = nil
+ vm.chunk = nil
+ vm.libraryValue = nil
+ vm.libraryChild = nil
+
return vm
end