summaryrefslogtreecommitdiff
path: root/ext/webgpu/01_webgpu.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-02-04 16:30:32 +0100
committerGitHub <noreply@github.com>2022-02-04 16:30:32 +0100
commite1d3bdfbd54f8dff389539d8b3b7c01d26d661ea (patch)
tree6aaa7213b23e1700fa71a56214ca9e19c08ebcf8 /ext/webgpu/01_webgpu.js
parent83bba957d5e835864fec8265cb449f675bfb2814 (diff)
refactor: fix primordials for WebGPU (#13594)
Diffstat (limited to 'ext/webgpu/01_webgpu.js')
-rw-r--r--ext/webgpu/01_webgpu.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/webgpu/01_webgpu.js b/ext/webgpu/01_webgpu.js
index cd1a6e5ad..3531dd797 100644
--- a/ext/webgpu/01_webgpu.js
+++ b/ext/webgpu/01_webgpu.js
@@ -174,6 +174,7 @@
super(message);
}
}
+ const GPUValidationErrorPrototype = GPUValidationError.prototype;
class GPU {
[webidl.brand] = webidl.brand;
@@ -715,7 +716,7 @@
const validationFilteredPromise = PromisePrototypeCatch(
operation,
(err) => {
- if (ObjectPrototypeIsPrototypeOf.prototype(GPUValidationError, err)) {
+ if (ObjectPrototypeIsPrototypeOf(GPUValidationErrorPrototype, err)) {
return PromiseReject(err);
}
return PromiseResolve();