Captured native Lua function or compiled chunk, retaining its exact VM.
Obtain from LuaScriptHost.compile or getFunction. Replacing a Lua global does not replace this reference. Shutdown invalidates every reference.
Execute this reference and copy its first scalar result.
...args
Scalar arguments; signed 64-bit integers use bigint.
First scalar result; no return value becomes null.
Execute once with an exact result count, matching ExecuteCall/EndCall.
resultCount
Nonnegative count; defaults to zero.
Scalar function or chunk arguments.
Copied results; missing results become null, extras are discarded.
Release this registry reference and its VM retention.
Calling or releasing it again rejects. Other references remain valid.
Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0
Captured native Lua function or compiled chunk, retaining its exact VM.
Remarks
Obtain from LuaScriptHost.compile or getFunction. Replacing a Lua global does not replace this reference. Shutdown invalidates every reference.