Closed TimSC closed 7 years ago
"In Lua programs, typos in variable names can be hard to spot because, in general, Lua will not complain that a variable is undefined." Interesting language! That's news to me. http://lua-users.org/wiki/DetectingUndefinedVariables
I would like to detect runtime errors when I call a lua function. I tried this, (similar to https://github.com/satoren/kaguya/blob/master/test/test_06_state.cpp ) but no exception is thrown.
I have a deliberate error in the lua code which I would expect to say variable not defined:
Any ideas?