__Invoke
Builtins · internal core builtin · accessible from
Bootstraponly
Invokes an operation through a reference.
Parameters
ObjectType? owner— The entity that owns the operation, ornullfor an operation without an owner.ObjectType operation— A reference to the operation to invoke.Array<ObjectType> args— The arguments to pass to the operation.
Returns
ObjectType? — The result of the invoked operation.
Errors
A runtime error if the operation cannot be found, or an owned operation is invoked without owner.