summaryrefslogtreecommitdiff
path: root/ext/webgpu/02_surface.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/webgpu/02_surface.js')
-rw-r--r--ext/webgpu/02_surface.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/webgpu/02_surface.js b/ext/webgpu/02_surface.js
index f35f745af..c48787dbf 100644
--- a/ext/webgpu/02_surface.js
+++ b/ext/webgpu/02_surface.js
@@ -92,7 +92,7 @@ class GPUCanvasContext {
"Failed to execute 'getCurrentTexture' on 'GPUCanvasContext'";
if (this[_configuration] === null) {
- throw new DOMException("context is not configured.", "InvalidStateError");
+ throw new DOMException("Context is not configured", "InvalidStateError");
}
const { createGPUTexture, assertDevice } = loadWebGPU();
@@ -179,7 +179,7 @@ class UnsafeWindowSurface {
getContext(context) {
if (context !== "webgpu") {
- throw new TypeError("Only 'webgpu' context is supported.");
+ throw new TypeError("Only 'webgpu' context is supported");
}
this.#ctx = createCanvasContext({ surfaceRid: this.#surfaceRid });
return this.#ctx;