Honestly, I'm not sure why the second would appear to be ok - I'd have thought it would cause the same problems.
@Gordon started
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.
Honestly, I'm not sure why the second would appear to be ok - I'd have thought it would cause the same problems.