From f6fad68d7b26f2b58a31b96860dba2bbfcfd1e61 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Wed, 31 Jul 2024 14:26:54 +0200 Subject: [PATCH] fix(ext/webgpu): don't crash while constructing GPUOutOfMemoryError (#24807) --- ext/webgpu/01_webgpu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/webgpu/01_webgpu.js b/ext/webgpu/01_webgpu.js index 47ae9603fc..e12e8699d9 100644 --- a/ext/webgpu/01_webgpu.js +++ b/ext/webgpu/01_webgpu.js @@ -998,7 +998,7 @@ class InnerGPUDevice { ); break; case "out-of-memory": - constructedError = new GPUOutOfMemoryError(); + constructedError = new GPUOutOfMemoryError("not enough memory left"); break; case "internal": constructedError = new GPUInternalError();