Brought the problem down the bottom.
Don't know, what standard tells about this.
If a port cannot be recognized, thats ok, but I would expect to get an error message.
>var x = {port:C5};
={ "port": C5 }
>var j = JSON.stringify(x);
="{\"port\":C5}"
>var y = JSON.parse(j);
=undefined
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.
Brought the problem down the bottom.
Don't know, what standard tells about this.
If a port cannot be recognized, thats ok, but I would expect to get an error message.