(error: WasmPanic)
| 43 | } |
| 44 | |
| 45 | export function getWasmError(error: WasmPanic) { |
| 46 | const message: string = globalThis.PRISMA_WASM_PANIC_REGISTRY.get() |
| 47 | const stack = [message, ...(error.stack || 'NO_BACKTRACE').split('\n').slice(1)].join('\n') |
| 48 | |
| 49 | return { message, stack } |
| 50 | } |
no test coverage detected