s_userErrorHandlerRef
global · ui
- Address
0x8722cc· 4 bytes, up to0x8722cf- Type
int32_t- Meaning
- Holds the registry reference of the function seterrorhandler set, -1 for none
- Confidence
- verified, proof two
- Finding
- ui/luastate#error-handlers
Finding: Error handlers in ui: the Lua state, its library and C functions
A script error inside a handler is passed to the error handler 0x703b40: when a function has been
set with seterrorhandler, it calls that function with the message and returns its result;
otherwise the message is returned unchanged. seterrorhandler(f) raises
Usage: seterrorhandler(errfunc) unless its first argument is a function, frees the old reference
and keeps a reference to the top value; geterrorhandler() answers the function, or nil before
one is set.
The derivation is in the doc.