LibWeb: Use correct type for MessageEventInit.ports

This didn't work previously because the IDL generator used the
incorrect type for some types of sequences within dictionaries.
This commit is contained in:
Tim Ledbetter
2024-05-15 20:58:02 +01:00
committed by Andreas Kling
parent 763b7f0e0c
commit 63246577d2
6 changed files with 10 additions and 10 deletions

View File

@@ -372,10 +372,10 @@ void MessagePort::post_message_task_steps(SerializedTransferRecord& serialize_wi
// 5. Let newPorts be a new frozen array consisting of all MessagePort objects in deserializeRecord.[[TransferredValues]], if any, maintaining their relative order.
// FIXME: Use a FrozenArray
Vector<JS::Handle<JS::Object>> new_ports;
Vector<JS::Handle<MessagePort>> new_ports;
for (auto const& object : deserialize_record.transferred_values) {
if (is<HTML::MessagePort>(*object)) {
new_ports.append(object);
new_ports.append(verify_cast<MessagePort>(*object));
}
}