confangled way to work around error reporting in lua.js