Code: Select all
function onStart()
i = 0
assert(false, "Function not skipped")
end
function onDraw()
Text.print("Value: " .. i)
end
It should give me the error, "Function not skipped," right?
Well, It actually gives me the error, "Attempt to concatenate global 'i' (a nil value)."
This only happens to APIs. How do I know? I called the API I was testing from onStart.