enso/lib/rust/web/js/rust_panic.js

11 lines
202 B
JavaScript

class RustPanic extends Error {
constructor(message) {
super(message)
this.name = 'RustPanic'
}
}
export function new_panic_error(message) {
return new RustPanic(message)
}