mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
LibWeb/IDB: Adjust return type of convert_a_value_to_a_key
This commit is contained in:
parent
499548c3d0
commit
8bfbcf6d9b
Notes:
github-actions[bot]
2025-04-23 18:38:48 +00:00
Author: https://github.com/stelar7
Commit: 8bfbcf6d9b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4317
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/kennethmyhra ✅
4 changed files with 15 additions and 30 deletions
|
@ -105,14 +105,14 @@ WebIDL::ExceptionOr<GC::Ref<IDBOpenDBRequest>> IDBFactory::open(String const& na
|
|||
WebIDL::ExceptionOr<i8> IDBFactory::cmp(JS::Value first, JS::Value second)
|
||||
{
|
||||
// 1. Let a be the result of converting a value to a key with first. Rethrow any exceptions.
|
||||
auto a = convert_a_value_to_a_key(realm(), first);
|
||||
auto a = TRY(convert_a_value_to_a_key(realm(), first));
|
||||
|
||||
// 2. If a is invalid, throw a "DataError" DOMException.
|
||||
if (a.is_error())
|
||||
return WebIDL::DataError::create(realm(), "Failed to convert a value to a key"_string);
|
||||
|
||||
// 3. Let b be the result of converting a value to a key with second. Rethrow any exceptions.
|
||||
auto b = convert_a_value_to_a_key(realm(), second);
|
||||
auto b = TRY(convert_a_value_to_a_key(realm(), second));
|
||||
|
||||
// 4. If b is invalid, throw a "DataError" DOMException.
|
||||
if (b.is_error())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue