Re: Problems with bubbling up tracebacks in Lua (& proposed solution)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Problems with bubbling up tracebacks in Lua (& proposed solution)
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2013年9月23日 11:32:29 -0300
> [...] AFAIK, VM errors are flattened to a string via luaL_error/luaG_runerror before reaching a user-overridable error callback.
Both luaL_error/luaG_runerror receive only strings, so they do not
need to flatten anything. But the real error primitive is lua_error
and, internally, luaG_errormsg; both accept any object as the
error "message" and do not change that object in any way.
-- Roberto