From f6fad68d7b26f2b58a31b96860dba2bbfcfd1e61 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Wed, 31 Jul 2024 14:26:54 +0200 Subject: fix(ext/webgpu): don't crash while constructing GPUOutOfMemoryError (#24807) --- ext/webgpu/01_webgpu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/webgpu/01_webgpu.js') diff --git a/ext/webgpu/01_webgpu.js b/ext/webgpu/01_webgpu.js index 47ae9603f..e12e8699d 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(); -- cgit v1.2.3