Hi - Thanks - I've just reproduced it here. It seems to be something to do with floating point numbers when used as function arguments.
Even something like this fails:
function F(x){ "compiled"; print (x-0.54); } function G(x){ print (x-0.54); } for (var i=0;i<10;i++) { print("----",i); F(i);G(i); }
I'll look into this now and see if it's an easy fix
@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.
Hi - Thanks - I've just reproduced it here. It seems to be something to do with floating point numbers when used as function arguments.
Even something like this fails:
I'll look into this now and see if it's an easy fix