How to "throw" JS error from Go web assembly?

Issue I tried js.Global().Call("throw", "yeet") but got back panic: 1:1: expected operand, found ‘type’ [recovered] wasm_exec.f7bab17184626fa7f3ebe6c157d4026825842d39bfae444ef945e60ec7d3b0f1.js:51 panic: syscall/js: Value.Call: property throw is not a function, got undefined I see there’s an Error type defined in syscall/js, but there’s nothing about

Continue reading