mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibWeb/IDB: Introduce an Invalid KeyType
This cleans up the code around failure/invalid/exception a bit
This commit is contained in:
parent
61384473ca
commit
facfcd87c2
Notes:
github-actions[bot]
2025-04-28 09:32:57 +00:00
Author: https://github.com/stelar7
Commit: facfcd87c2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4476
Reviewed-by: https://github.com/gmta ✅
7 changed files with 68 additions and 56 deletions
|
@ -73,6 +73,8 @@ i8 Key::compare_two_keys(GC::Ref<Key> a, GC::Ref<Key> b)
|
|||
|
||||
// 6. Switch on ta:
|
||||
switch (ta) {
|
||||
case KeyType::Invalid:
|
||||
VERIFY_NOT_REACHED();
|
||||
// number
|
||||
// date
|
||||
case KeyType::Number:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue