From e1d3bdfbd54f8dff389539d8b3b7c01d26d661ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 4 Feb 2022 16:30:32 +0100 Subject: [PATCH] refactor: fix primordials for WebGPU (#13594) --- ext/webgpu/01_webgpu.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/webgpu/01_webgpu.js b/ext/webgpu/01_webgpu.js index cd1a6e5ad7..3531dd7972 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();