From cfbeacd55ed3eb81abe3843ff83d33a3630a010f Mon Sep 17 00:00:00 2001 From: Kai Ninomiya Date: Mon, 21 Apr 2025 13:52:35 -0700 Subject: [PATCH] Revert "Show error dialog on unhandled rejection and uncaught exception (#502)" This reverts commit a1bafc99b8acdeb928158e0efd2f695d25550b85. --- sample/util.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/sample/util.ts b/sample/util.ts index 03205217..b36fefb4 100644 --- a/sample/util.ts +++ b/sample/util.ts @@ -1,14 +1,3 @@ -// Show an error dialog if there's any uncaught exception or promise rejection. -// This gets set up on all pages that include util.ts. -window.addEventListener('unhandledrejection', (ev) => { - fail(`unhandled promise rejection, please report a bug! - https://github.com/webgpu/webgpu-samples/issues/new\n${ev.reason}`); -}); -window.addEventListener('error', (ev) => { - fail(`uncaught exception, please report a bug! - https://github.com/webgpu/webgpu-samples/issues/new\n${ev.error}`); -}); - /** Shows an error dialog if getting an adapter wasn't successful. */ export function quitIfAdapterNotAvailable( adapter: GPUAdapter | null