AcediaDocumentation

isprotohooked

Checks whether a function uses a recorded hooked prototype.

Returns true when the function currently uses a forwarder prototype recorded by hookproto. A normal function or a restored prototype returns false. A prototype handle from debug.getproto is answered for the prototype it stands in for, not for the handle closure.

isprotohooked(target: function): boolean

Parameters

ParameterTypeDescription
targetfunctionFunction to inspect, or a debug.getproto handle.

On this page