aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-03-24 10:42:00 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-03-24 10:52:40 +0100
commit8fab53967bc16e2b81f44ac380b90be5e6f5913d (patch)
treeda83e24dff9becf6b3a8bdc9995e4be7ea1c6961 /lua
parent865848dda55600dbdeb2424763dbf753c7e1f0e5 (diff)
downloadvis-8fab53967bc16e2b81f44ac380b90be5e6f5913d.tar.gz
vis-8fab53967bc16e2b81f44ac380b90be5e6f5913d.tar.xz
vis-lua: adjust return value validation of called lua functions
While the invoked Lua functions are executed in protected mode, the validation of the return values currently happens in unprotected mode. Thus an invaid return value triggers a lua error and because we currently do not have a global panic handler registered this will terminate the editor process. This commit changes the return value validation to silently fall back to default values instead of raising errors. If we want to provide user friendly stack traces showing the origin of the offending value we would have to move the validation into the Lua code.
Diffstat (limited to 'lua')
0 files changed, 0 insertions, 0 deletions