mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00: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
Notes:
github-actions[bot]
2024-10-31 23:37:18 +00:00
Author: https://github.com/trflynn89
Commit: c479ca97b6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2088
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue