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.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/core/vm.lua b/server/src/core/vm.lua
index 156b73d4..518277e2 100644
--- a/server/src/core/vm.lua
+++ b/server/src/core/vm.lua
@@ -20,6 +20,7 @@ function mt:createDummyVar(source, value)
type = 'local',
key = '',
source = source or getDefaultSource(),
+ close = self.scope.block.finish,
}
if source then
@@ -43,6 +44,9 @@ function mt:createLocal(key, source, value)
source = source or getDefaultSource(),
close = self.scope.block.finish,
}
+ if not loc.close then
+ error('Miss close')
+ end
if source then
source.bind = loc