mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 06:07:59 +00:00
LibWeb/Bindings: Generate undefined in a union as 'Empty'
This can only ever be undefined, and no other JS value, so it makes sense to use undefined to represent this case.
This commit is contained in:
committed by
Tim Ledbetter
parent
fef1f62ecc
commit
dfdcfc8e88
@@ -196,7 +196,7 @@ public:
|
||||
WebIDL::ExceptionOr<void> post_message(JS::Value message, String const&, Vector<GC::Root<JS::Object>> const&);
|
||||
WebIDL::ExceptionOr<void> post_message(JS::Value message, WindowPostMessageOptions const&);
|
||||
|
||||
Variant<GC::Root<DOM::Event>, JS::Value> event() const;
|
||||
Variant<GC::Root<DOM::Event>, Empty> event() const;
|
||||
|
||||
[[nodiscard]] GC::Ref<CSS::CSSStyleDeclaration> get_computed_style(DOM::Element&, Optional<String> const& pseudo_element) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user