Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
EnTerr
Level 8

RSG bug: `node.bogusField = 42` does zilch

Here is a scenical bug: assigning a value to a non-existent field of a Node does not work - nor does it show error message of any kind:
BrightScript Debugger> ? scene.foo : scene.foo = 42 : ? scene.foo
invalid
invalid

BrightScript Debugger> ? type(scene), scene.parentSubtype(scene.subtype())
roSGNode        Scene

Ok, so perhaps a field that has not been officially added (<interface> or addField()) - or name is misspelled - cannot be assigned, that makes sense. What does not make sense is execution silently ignoring the exception and continuing! Hard error message should be shown and program interrupted when this happens.

I found this the hard way, having my code "working" - but not really. Had to meticulously examine line by line to figure what might have gone wrong. Not a good way to spend our time.
0 Kudos
1 Reply
EnTerr
Level 8

Re: RSG bug: `node.bogusField = 42` does zilch

@Roku - anybody going to kindly enter bug on this one?
0 Kudos