v0.13.8

securecallmethod

functionimplementedavailable in: camelot

Invokes a named method on an object with a secure call barrier that prevents errors or taint from function lookup and execution from propagating to the caller.

signaturewowlua
function securecallmethod(    object: any,    method: string,    arguments: any): any

Parameters

nametypedescription
objectanyThe table on which to look up the named method from. Lookup of the method uses raw access and ignores any associated metatable.
methodstringThe name of a method to retrieve.
argumentsanyArguments to supply to the method. The initial 'object' parameter is always supplied as the first argument, followed by these values.

Returns

results · any · Results from the executed function. If an error occurred, this result list will be empty.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

  • It can't be hooked with hooksecurefunc.

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (FrameScript system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.