mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
Make transaction field non-null in IDBObjectStore (#38834)
In the `IDBObjectStore::new` constructor, the `transaction` field is initialized to null, but when using this constructor, we always execute `set_transaction` immediately afterward. Therefore, we refactored to require the `transaction` field to be specified during construction and thereby also removed some no longer necessary assertions. We also updated the `transaction` field in WebIDL to remove the nullable capability. Testing: WPT Fixes: #38814 --------- Signed-off-by: criskell <96352451+criskell@users.noreply.github.com>
This commit is contained in:
parent
ede9db2e18
commit
56ce19511c
5 changed files with 20 additions and 17 deletions
|
@ -13,7 +13,7 @@ interface IDBObjectStore {
|
|||
attribute DOMString name;
|
||||
// readonly attribute any keyPath;
|
||||
// readonly attribute DOMStringList indexNames;
|
||||
[SameObject] readonly attribute IDBTransaction? transaction;
|
||||
[SameObject] readonly attribute IDBTransaction transaction;
|
||||
readonly attribute boolean autoIncrement;
|
||||
|
||||
[NewObject, Throws] IDBRequest put(any value, optional any key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue