summaryrefslogtreecommitdiff
path: root/ext/webgpu/01_webgpu.js
diff options
context:
space:
mode:
authorguangwu <guoguangwu@magic-shield.com>2024-03-14 21:28:27 +0800
committerGitHub <noreply@github.com>2024-03-14 13:28:27 +0000
commitcad79af785d2490aadacd935062b1703adef50d2 (patch)
tree234396758380d58134023bebd2a6189670ec4b43 /ext/webgpu/01_webgpu.js
parent10e592f95491b3a464bbf2199e7ee5819b537570 (diff)
fix: typo in error from GPUBuffer.prototype.mapAsync (#22913)
Diffstat (limited to 'ext/webgpu/01_webgpu.js')
-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 31b0a75f6..b8b13ebf8 100644
--- a/ext/webgpu/01_webgpu.js
+++ b/ext/webgpu/01_webgpu.js
@@ -2040,7 +2040,7 @@ class GPUBuffer {
device.pushErrorPromise(promise);
const err = await promise;
if (err) {
- throw new DOMException("validation error occured", "OperationError");
+ throw new DOMException("validation error occurred", "OperationError");
}
this[_state] = "mapped";
this[_mappingRange] = [offset, offset + rangeSize];