mirror of
https://github.com/enso-org/enso.git
synced 2024-11-28 08:35:07 +03:00
11 lines
202 B
JavaScript
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)
|
|
}
|