Open
Description
This will cause a reboot:
var s = require("Storage");
s.write("ch0", E.toUint8Array([0]));
s.readArrayBuffer("ch0")[0] = 1;
Found to occur on ESP32 and ESP8266. I will test more boards when I can. Present in the last release as well as a build compiled this afternoon.
In my application, I actually need a Uint8Array and I find this work around returns a writeable object:
new Uint8Array(new Uint8Array(s.readArrayBuffer("ch0")))