1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:37:35 +00:00

LibWeb: Add missing visits in MessageEvent

Also change a Vector<Handle> to a Vector<NonnullGCPtr> while we're
here, since there's no need to use handles for members of a cell.

Fixes an ASAN error on the HTML/Window-postMessage.html test.
This commit is contained in:
Andreas Kling 2024-01-24 08:56:59 +01:00
parent 413eb19579
commit b84056c05b
2 changed files with 9 additions and 2 deletions

View file

@ -48,7 +48,7 @@ private:
String m_origin;
String m_last_event_id;
Optional<MessageEventSource> m_source;
Vector<JS::Handle<JS::Object>> m_ports;
Vector<JS::NonnullGCPtr<JS::Object>> m_ports;
mutable JS::GCPtr<JS::Array> m_ports_array;
};