CallInfo
Raw call info for variadic or dynamic-arity functions. Recognized by type as a function parameter; does not consume a JS argument.
Methods
args returns a fixed-size array; the size is comptime. Use argCount to know how many slots are real.
When to use it
- Variadic functions like
sum(...nums). - Functions whose argument types depend on runtime conditions (where you would convert each argument with
val.to(env, T)based on its observed type). - Reaching
thisfrom a function that is being called as a method on a JS object.
For everything else, prefer typed parameters; the bridge does the conversion for you and the result is shorter and clearer.