Thanks - it is slightly concerning that it doesn't cause an error though.
It seems that in Espruino, a=3 actually returned a reference to a when really it should have returned 3. So (a=2)=3 was possible when it shouldn't be according to the spec - I've just fixed this for cutting edge builds.
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.
Thanks - it is slightly concerning that it doesn't cause an error though.
It seems that in Espruino,
a=3
actually returned a reference toa
when really it should have returned3
. So(a=2)=3
was possible when it shouldn't be according to the spec - I've just fixed this for cutting edge builds.