This one causes the Puck to immediately crash and disconnect from BLE!
function go() { var users = [ { name: "Bob" }, { name: "Alice" }, { name: "Eva" } ]; console.log(users.map((u, i) => u.name)); }
It seems as follows:
u => u.name works perfectly (u) => u.name isn't correctly passed its arguments (?) (u, i) => u.name crashes the device
u => u.name
(u) => u.name
(u, i) => u.name
@Drarok 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.
This one causes the Puck to immediately crash and disconnect from BLE!
It seems as follows:
u => u.name
works perfectly(u) => u.name
isn't correctly passed its arguments (?)(u, i) => u.name
crashes the device