mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 09:04:53 +00:00
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:
committed by
Andreas Kling
parent
763b7f0e0c
commit
63246577d2
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user