You are reading a single comment by @Robin and its replies. Click here to read the full conversation.
'Looks like global variables named c are a no-go in Espruino 2v10'
I believe there are several/many others as I demonstrated in several code block examples over 18 months ago:
Those should provide useful for eliminating the other letters of the alphabet.
I've just dug a little deeper and I can reproduce even on a desktop build with:
Turns out it's not a memory corruption issue or anything like that (although the
Field or method "testuQå"error does seem ominous). It's to do with how the code for
The function (after minification, and with some semblance of formatting added) is:
Unminified code is:
I guess it's valid JS, but what the minifier has done is change all variable names to
c, and then it has just a single
var cin the first
ifstatement, and nowhere else. So if that
ifdoesn't get run in Espruino, no local var is created and it assumes that the var is global, overwriting
So in short:
care a no-go in Espruino 2v10