summaryrefslogtreecommitdiff
path: root/ext/webgpu
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2024-07-31 14:26:54 +0200
committerGitHub <noreply@github.com>2024-07-31 14:26:54 +0200
commitf6fad68d7b26f2b58a31b96860dba2bbfcfd1e61 (patch)
tree5b6e1eb0ad00390aae714dfa71a55971335708e5 /ext/webgpu
parent9e6288ec61922ad34ebb09694b5c444ce9767d21 (diff)
fix(ext/webgpu): don't crash while constructing GPUOutOfMemoryError (#24807)
Diffstat (limited to 'ext/webgpu')
-rw-r--r--ext/webgpu/01_webgpu.js2
1 files changed, 1 insertions, 1 deletions
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();