(error: Error)
| 39 | * Returns true if the given error is a Wasm panic. |
| 40 | */ |
| 41 | export function isWasmPanic(error: Error): error is WasmPanic { |
| 42 | return error.name === 'RuntimeError' |
| 43 | } |
| 44 | |
| 45 | export function getWasmError(error: WasmPanic) { |
| 46 | const message: string = globalThis.PRISMA_WASM_PANIC_REGISTRY.get() |
no outgoing calls
no test coverage detected