Roku firmware bug?
model: Roku 3 (fw: 6.1 b5604)
Example of expected results
BrightScript Debugger> aa = {}
BrightScript Debugger> ?type(value)
<uninitialized>
BrightScript Debugger> key = "string"
BrightScript Debugger> ?type(key)
String
BrightScript Debugger> aa[key] = value
Use of uninitialized variable. (runtime error &he9) in $LIVECOMPILE(171)
BrightScript Debugger> key$ = "string"
BrightScript Debugger> ?type(key)
String
BrightScript Debugger> aa[key] = value
Use of uninitialized variable. (runtime error &he9) in $LIVECOMPILE(174)
Crash/Reboot
BrightScript Debugger> key = String(1, "a")
BrightScript Debugger> ?type(key)
String
BrightScript Debugger> aa[key] = value
Connection closed by foreign host.
I understand this code would crash a channel and one should validate the variable before hand, but obviously we all make mistakes. A crash is perfect because it allows us to debug and fix the issue. With a reboot, it's close to impossible to find the issue.