Skip to content

Commit 00dee4a

Browse files
committed
Fixed the previously introduced (stupid) issue of missing the unpack function
1 parent 3a9fc3e commit 00dee4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/scripting-ref.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,14 +426,14 @@ amount of time:
426426
427427
function wait_until(splash, timeout, polling_interval, check_func, ...)
428428
-- XXX: polling_interval shall not be too small
429-
local vargs = ...
429+
local vargs = {...}
430430
local ok, result1, result2 = splash:with_timeout(function()
431431
while true do
432432
local ok, reason = splash:wait(polling_interval)
433433
if not ok then
434434
return ok, string.format('wait failed: %s', reason)
435435
end
436-
local check_result = check_func(vargs)
436+
local check_result = check_func(table.unpack(vargs))
437437
if check_result then
438438
return true, check_result
439439
end

0 commit comments

Comments
 (0)