Ah so I've just noticed that you are saying that it is NOT failing.
Is it possible that test() function was called beforehand during your tests? I don't fully understand what is going on there but maybe that's where your a values are coming from. And b.a in that case would always be 0.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ah so I've just noticed that you are saying that it is NOT failing.
Is it possible that test() function was called beforehand during your tests? I don't fully understand what is going on there but maybe that's where your a values are coming from. And b.a in that case would always be 0.