mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 18:02:20 +00:00
LibWeb/IDB: Implement IDBCursor::primary_key
This commit is contained in:
parent
141093e032
commit
8f876e824b
Notes:
github-actions[bot]
2025-05-08 13:14:51 +00:00
Author: https://github.com/stelar7
Commit: 8f876e824b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4650
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 9 additions and 1 deletions
|
@ -162,4 +162,11 @@ WebIDL::ExceptionOr<void> IDBCursor::continue_(JS::Value key)
|
|||
});
|
||||
}
|
||||
|
||||
// https://w3c.github.io/IndexedDB/#dom-idbcursor-primarykey
|
||||
JS::Value IDBCursor::primary_key() const
|
||||
{
|
||||
// The primaryKey getter steps are to return the result of converting a key to a value with the cursor’s current effective key.
|
||||
return convert_a_key_to_a_value(realm(), effective_key());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue