aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bluetooth/bluetoothpermissionresult.rs
diff options
context:
space:
mode:
authorYerkebulan Tulibergenov <yerkebulan@gmail.com>2025-02-25 02:12:58 -0800
committerGitHub <noreply@github.com>2025-02-25 10:12:58 +0000
commit38b71087bd710dd0a96140affbb5bb38c23d8689 (patch)
tree62f64087a4ef2e508b8ce0679391799ac91a34d1 /components/script/dom/bluetooth/bluetoothpermissionresult.rs
parentc844ed232a86fef873dc661de60e282fdb86c0d3 (diff)
downloadservo-38b71087bd710dd0a96140affbb5bb38c23d8689.tar.gz
servo-38b71087bd710dd0a96140affbb5bb38c23d8689.zip
refactor: add CanGc as argument to Promise::reject_error (#35646)
Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
Diffstat (limited to 'components/script/dom/bluetooth/bluetoothpermissionresult.rs')
-rw-r--r--components/script/dom/bluetooth/bluetoothpermissionresult.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/bluetooth/bluetoothpermissionresult.rs b/components/script/dom/bluetooth/bluetoothpermissionresult.rs
index 2a02936d5f7..583bc56febe 100644
--- a/components/script/dom/bluetooth/bluetoothpermissionresult.rs
+++ b/components/script/dom/bluetooth/bluetoothpermissionresult.rs
@@ -137,7 +137,7 @@ impl AsyncBluetoothListener for BluetoothPermissionResult {
// Step 8.
promise.resolve_native(self, can_gc);
},
- _ => promise.reject_error(Error::Type("Something went wrong...".to_owned())),
+ _ => promise.reject_error(Error::Type("Something went wrong...".to_owned()), can_gc),
}
}
}