LibWeb: Do not store supported performance entry types in a plain vector

These are not protected from GC.
This commit is contained in:
Timothy Flynn 2024-10-31 12:18:13 -04:00 committed by Alexander Kalenik
commit c479ca97b6
Notes: github-actions[bot] 2024-10-31 23:37:18 +00:00

View file

@ -741,7 +741,7 @@ JS::NonnullGCPtr<JS::Object> WindowOrWorkerGlobalScopeMixin::supported_entry_typ
auto& realm = this_impl().realm();
if (!m_supported_entry_types_array) {
Vector<JS::Value> supported_entry_types;
JS::MarkedVector<JS::Value> supported_entry_types(vm.heap());
#define __ENUMERATE_SUPPORTED_PERFORMANCE_ENTRY_TYPES(entry_type, cpp_class) \
supported_entry_types.append(JS::PrimitiveString::create(vm, entry_type));