LibWeb: Initialize IDBTransaction::m_state correctly

The spec says this should be initialized as "active", so let's do that.

Found by UBSAN when using 16 KiB GC heap blocks on Linux.
This commit is contained in:
Andreas Kling 2025-12-19 17:38:57 -06:00 committed by Andreas Kling
parent 6975c31b4d
commit f58d4dd324

View file

@ -117,7 +117,7 @@ private:
Bindings::IDBTransactionDurability m_durability { Bindings::IDBTransactionDurability::Default };
// A transaction has a state
TransactionState m_state;
TransactionState m_state { TransactionState::Active };
// A transaction has a error which is set if the transaction is aborted.
GC::Ptr<WebIDL::DOMException> m_error;