mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Do not store supported performance entry types in a plain vector
These are not protected from GC.
This commit is contained in:
parent
d5c3a0e53a
commit
c479ca97b6
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user