mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
refactor: fix primordials for WebGPU (#13594)
This commit is contained in:
parent
83bba957d5
commit
e1d3bdfbd5
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue