mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-12 09:20:36 +00:00
LibWeb: Use NonnullGCPtr in EventTarget's event handler map
Null entries are not valid, so let's not allow them.
This commit is contained in:
parent
99ca2ccf08
commit
7139d5945f
Notes:
sideshowbarker
2024-07-17 06:35:16 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/7139d5945f Pull-request: https://github.com/SerenityOS/serenity/pull/23549
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ private:
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#event-handler-map
|
||||
// Spec Note: The order of the entries of event handler map could be arbitrary. It is not observable through any algorithms that operate on the map.
|
||||
HashMap<FlyString, JS::GCPtr<HTML::EventHandler>> event_handler_map;
|
||||
HashMap<FlyString, JS::NonnullGCPtr<HTML::EventHandler>> event_handler_map;
|
||||
};
|
||||
|
||||
Data& ensure_data();
|
||||
|
|
Loading…
Reference in a new issue