summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/compiler.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 4395eea4..7bb9ba1b 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -497,7 +497,9 @@ local function bindAs(source)
end
for _, doc in ipairs(docs) do
if doc.type == 'doc.as' and doc.originalComment.start == source.finish + 2 then
- vm.setNode(source, vm.compileNode(doc.as), true)
+ if doc.as then
+ vm.setNode(source, vm.compileNode(doc.as), true)
+ end
return true
end
end