Despite the syntax error due to a missing 'end' token, this script does not throw a ParseException:
local script = {...}
function script.something()
for i = 1, 10 do
print(i)
--end -- <<== 'forgot' the end here
end
return script
This will silently return an empty LuaValue[] to C#.