From cad79af785d2490aadacd935062b1703adef50d2 Mon Sep 17 00:00:00 2001 From: guangwu Date: Thu, 14 Mar 2024 21:28:27 +0800 Subject: fix: typo in error from GPUBuffer.prototype.mapAsync (#22913) --- 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 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]; -- cgit v1.2.3