aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgpu/gpuadapter.rs
diff options
context:
space:
mode:
authorAuguste Baum <52001167+augustebaum@users.noreply.github.com>2025-02-23 01:34:51 +0100
committerGitHub <noreply@github.com>2025-02-23 00:34:51 +0000
commitb0b0289014b707505a6921152b9ecba75afa207f (patch)
treef2ffba650cf28da83904b14e94ba3913967951f2 /components/script/dom/webgpu/gpuadapter.rs
parent02199520f2b611c9b5ab7b34a2372689cb4c22cd (diff)
downloadservo-b0b0289014b707505a6921152b9ecba75afa207f.tar.gz
servo-b0b0289014b707505a6921152b9ecba75afa207f.zip
refactor: propagate CanGc arguments through callers (#35591)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
Diffstat (limited to 'components/script/dom/webgpu/gpuadapter.rs')
-rw-r--r--components/script/dom/webgpu/gpuadapter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/webgpu/gpuadapter.rs b/components/script/dom/webgpu/gpuadapter.rs
index 6794a89345c..81af8d60340 100644
--- a/components/script/dom/webgpu/gpuadapter.rs
+++ b/components/script/dom/webgpu/gpuadapter.rs
@@ -245,7 +245,7 @@ impl AsyncWGPUListener for GPUAdapter {
String::new(),
can_gc,
);
- device.lose(GPUDeviceLostReason::Unknown, e.to_string());
+ device.lose(GPUDeviceLostReason::Unknown, e.to_string(), can_gc);
promise.resolve_native(&device);
},
WebGPUResponse::None => unreachable!("Failed to get a response for RequestDevice"),