New crash error msg: Unable to cast "<uninitialized>" to "Integer".
So a recent Roku OS update (apparently) has changed this behavior. For years I used to be able to send an uninitialized variable to a Function such as MyFunction(x = 1 AS INTEGER) and have it work fine, but now if x is uninitialized I get the following error message and a hard crash:
Type Mismatch. Unable to cast "<uninitialized>" to "Integer". (runtime error &h18)