mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
LibWeb: Generate Optional<NonnullGCPtr<T>> as GCPtr<T>
This is the general pattern which has been adopted in LibWeb, so let's generate our IDL like this too.
This commit is contained in:
parent
3a0e69d86f
commit
80658743d3
Notes:
sideshowbarker
2024-07-17 10:54:57 +09:00
Author: https://github.com/shannonbooth
Commit: 80658743d3
Pull-request: https://github.com/SerenityOS/serenity/pull/23877
Reviewed-by: https://github.com/kennethmyhra ✅
7 changed files with 11 additions and 11 deletions
|
@ -135,8 +135,8 @@ static FlattenedAddEventListenerOptions flatten_add_event_listener_options(Varia
|
|||
once = add_event_listener_options.once;
|
||||
|
||||
// 2. If options["signal"] exists, then set signal to options["signal"].
|
||||
if (add_event_listener_options.signal.has_value())
|
||||
signal = add_event_listener_options.signal.value().ptr();
|
||||
if (add_event_listener_options.signal)
|
||||
signal = add_event_listener_options.signal;
|
||||
}
|
||||
|
||||
// 5. Return capture, passive, once, and signal.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue