1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00

refactor: fix primordials for WebGPU (#13594)

This commit is contained in:
Bartek Iwańczuk 2022-02-04 16:30:32 +01:00 committed by GitHub
parent 83bba957d5
commit e1d3bdfbd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();