mirror of
https://github.com/enso-org/enso.git
synced 2024-12-02 15:42:13 +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)
|
||
|
}
|