aWriteThatFailsThrowsAnException

A write to a broken medium must throw an Exception.

DurableStore.write already promises never to return before the bytes are committed, so a write that returns here is a lie about durability. The type matters as much as the throw: on Kotlin/Wasm a JavaScript exception crossing the bridge is a JsException, which extends Throwable and not Exception, so a caller's catch (e: Exception) misses it and it lands in the page's crash handler instead (#3143).