summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/compiler.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 04a4f0c5..a71cdf70 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -977,6 +977,7 @@ local function compileLocal(source)
vm.setNode(source, vm.compileNode(source.parent.parent.parent.node))
end
end
+ vm.getNode(source):remove 'function'
end
local hasMarkValue
if not hasMarkDoc and source.value then