diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-02-04 16:30:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-04 16:30:32 +0100 |
commit | e1d3bdfbd54f8dff389539d8b3b7c01d26d661ea (patch) | |
tree | 6aaa7213b23e1700fa71a56214ca9e19c08ebcf8 /ext/webgpu/01_webgpu.js | |
parent | 83bba957d5e835864fec8265cb449f675bfb2814 (diff) |
refactor: fix primordials for WebGPU (#13594)
Diffstat (limited to 'ext/webgpu/01_webgpu.js')
-rw-r--r-- | ext/webgpu/01_webgpu.js | 3 |
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(); |