summaryrefslogtreecommitdiff
path: root/script/vm/function.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/function.lua')
-rw-r--r--script/vm/function.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/function.lua b/script/vm/function.lua
index f64b2262..148211be 100644
--- a/script/vm/function.lua
+++ b/script/vm/function.lua
@@ -201,7 +201,7 @@ end
---@return parser.object[]
function vm.getMatchedFunctions(func, args, mark)
local funcs = {}
- local node = vm.compileNode(func)
+ local node = vm.getNode(func) or vm.compileNode(func)
for n in node:eachObject() do
if n.type == 'function'
or n.type == 'doc.type.function' then