It was in fact a compatibility thing. The loadfile script works great when running from lua53.exe directly but my debugger in vscode was configured to use lua 5.1. Thank you guys for the help on this one!
The basic Lua library provides several core functions. For security reasons, the dofile(), load(), loadfile(), and loadstring() functions are not available in Corona.
I know we enabled loadstring(), but for a long time Apple would reject apps that tried to dynamically load executable code. They have eased that restriction somewhat, but any of those API’s we may have opened, but chose to not document them.
It was in fact a compatibility thing. The loadfile script works great when running from lua53.exe directly but my debugger in vscode was configured to use lua 5.1. Thank you guys for the help on this one!
The basic Lua library provides several core functions. For security reasons, the dofile(), load(), loadfile(), and loadstring() functions are not available in Corona.
I know we enabled loadstring(), but for a long time Apple would reject apps that tried to dynamically load executable code. They have eased that restriction somewhat, but any of those API’s we may have opened, but chose to not document them.