Improve and clean up panic dialog code and wasm wrapper (#368)

Part of #357
This commit is contained in:
Keavon Chambers
2021-09-01 04:09:23 -07:00
committed by GitHub
parent 51c2494d43
commit 636e5d8280
17 changed files with 122 additions and 92 deletions
@@ -160,11 +160,13 @@ function newDisplayError(input: any): DisplayError {
}
export interface DisplayPanic {
panic_info: string;
title: string;
description: string;
}
function newDisplayPanic(input: any): DisplayPanic {
return {
panic_info: input.panic_info,
title: input.title,
description: input.description,
};