mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
IDLGenerators: Generate impl_from() for types that have setlike
Found by this interface, which has nothing else in it:
```
[Exposed=Window]
interface CustomStateSet {
setlike<DOMString>;
};
```
This commit is contained in:
parent
efcbec250f
commit
be21d952b1
|
|
@ -3742,7 +3742,7 @@ static void generate_prototype_or_global_mixin_definitions(IDL::Interface const&
|
|||
generator.set("iterator_name", ByteString::formatted("{}Iterator", interface.name));
|
||||
}
|
||||
|
||||
if (!interface.attributes.is_empty() || !interface.functions.is_empty() || interface.has_stringifier) {
|
||||
if (!interface.attributes.is_empty() || !interface.functions.is_empty() || interface.has_stringifier || interface.set_entry_type.has_value()) {
|
||||
generator.append(R"~~~(
|
||||
[[maybe_unused]] static JS::ThrowCompletionOr<@fully_qualified_name@*> impl_from(JS::VM& vm)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user