Fix arity and return value mismatches

`assert` returns every argument it is given, so `return assert(x, msg)`
was leaking the message as a second return value.

`get_tile` is documented as taking x and y. The async function class
declared `@operator call` with no parameters, which made every async
call look over supplied.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
bbassie
2026-08-07 15:31:48 +00:00
co-authored by Claude Opus 5
parent 2fece14a45
commit f907007d14
10 changed files with 19 additions and 22 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ Async.status = {}
--- @class Async.AsyncFunction
--- @field id string The id of this async function
--- @operator call: Async.AsyncReturn<any>
--- @overload fun(...: any): Async.AsyncReturn<any>
Async._function_prototype = {}
Async._function_metatable = {