summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
Diffstat (limited to 'script/core')
-rw-r--r--script/core/diagnostics/not-yieldable.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/script/core/diagnostics/not-yieldable.lua b/script/core/diagnostics/not-yieldable.lua
index ed853380..0be92e82 100644
--- a/script/core/diagnostics/not-yieldable.lua
+++ b/script/core/diagnostics/not-yieldable.lua
@@ -43,10 +43,11 @@ return function (uri, callback)
end
for i, arg in ipairs(source.args) do
if vm.isAsync(arg, true)
+ and not vm.isLinkedCall(source.node, i)
and not isYieldAble(defs, i) then
callback {
- start = source.node.start,
- finish = source.node.finish,
+ start = arg.start,
+ finish = arg.finish,
message = lang.script('DIAG_NOT_YIELDABLE', i),
}
end