Found a bug in Array.indexOf implementation. Only strings less than 5 characters matches.
global.keep = ["keep", "onInit", "SPI", "SPI2", "Ethernet", "eth", "Server", "Socket", "Serial", "Pipe", "LoopbackA", "LoopbackB", "fullreset", "reset"]; function softreset() { Object.keys(global).forEach(function(n) { console.log("-"+n+"-"); console.log(global.keep.indexOf(n)); });
Should I open a new topic?
@heri16 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.
Found a bug in Array.indexOf implementation.
Only strings less than 5 characters matches.
Should I open a new topic?