var chars = {
80: new Uint8Array([
0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,0xfe,0x00,0x00,
0x03,0xff,0xff,0xe0,0x00,0x00,0x02,
0xff,0xfe,0x00,0x00,0x00,0x0b,0xff,
0xe0,0x7f,0xff,0x40,0x7f,0xfe,0x07,
0xff,0xfe,0x02,0xff,0xe0,0x7f,0xff,
0xf4,0x1f,0xfe,0x07,0xff,0xff,0x81,
0xff,0xe0,0x7f,0xff,0xf8,0x1f,0xfe,
0x07,0xff,0xff,0x42,0xff,0xe0,0x7f,
0xff,0xe0,0x2f,0xfe,0x07,0xff,0xf4,
0x07,0xff,0xe0,0x00,0x00,0x01,0xff,
0xfe,0x00,0x00,0x00,0x7f,0xff,0xe0,
0x00,0x00,0x7f,0xff,0xfe,0x07,0xff,
0xff,0xff,0xff,0xe0,0x7f,0xff,0xff,
0xff,0xfe,0x07,0xff,0xff,0xff,0xff,
0xe0,0x7f,0xff,0xff,0xff,0xfe,0x07,
0xff,0xff,0xff,0xff,0xe0,0x7f,0xff,
0xff,0xff,0xfe,0x07,0xff,0xff,0xff,
0xff,0xe0,0x7f,0xff,0xff,0xff,0xfe,
0x07,0xff,0xff,0xff,0xff,0xe0,0x7f,
0xff,0xff,0xff
]),
// ... and so on, right now up to 23 attributes like the one above
i experienced some weird behaviour when i raise the sizes of the Uint8Arrays (like 50-100 elements more) --> out of memory
for the object above (including all 23 attributes) and some functions i get
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.
Are there any limits on javascript object usage?
i have an object which looks like
i experienced some weird behaviour when i raise the sizes of the Uint8Arrays (like 50-100 elements more) --> out of memory
for the object above (including all 23 attributes) and some functions i get
and
i am certainly not expecting a out of memory, even if the the
chars
object would be double the size than before