Is there a way to get details on `JsException: Exc...
# webassembly
a
Is there a way to get details on
JsException: Exception was thrown while running JavaScript code
? The only solution I've found so far is to wrap my call in Javascript like this:
Copy code
private fun debug(handler: GPUDevice, it: GPURenderPipelineDescriptor): GPURenderPipeline = js(
    """{
    try {
      return handler.createRenderPipeline(it);
    } catch (error) {
      console.log('Caught an error:', error);
    }
}"""
)
Instead of just calling
handler.createRenderPipeline(it)
i
Not for now but it seems that it is going to land in the next kotlin release.
👍 1
a
thank you color 1