mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Fix returned error types in WebGPU
This commit is contained in:
parent
a751b1c3d7
commit
430248e9c8
3 changed files with 7 additions and 16 deletions
|
@ -180,7 +180,7 @@ impl GPUDeviceMethods for GPUDevice {
|
|||
id,
|
||||
wgpu_descriptor,
|
||||
))
|
||||
.unwrap();
|
||||
.expect("Failed to create WebGPU buffer");
|
||||
} else {
|
||||
unimplemented!()
|
||||
};
|
||||
|
@ -218,7 +218,7 @@ impl GPUDeviceMethods for GPUDevice {
|
|||
id,
|
||||
wgpu_descriptor.clone(),
|
||||
))
|
||||
.unwrap()
|
||||
.expect("Failed to create WebGPU buffer");
|
||||
} else {
|
||||
return vec![js_val.get()];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue