Skip to content

__Invoke

ObjectType? __Invoke(ObjectType? owner, ObjectType operation, Array<ObjectType> args)

Builtins · internal core builtin · accessible from Bootstrap only

Invokes an operation through a reference.

Parameters

  • ObjectType? owner — The entity that owns the operation, or null for 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.

See Also