mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibJS: Don't use Handle<Value> for JS::Object private fields
There's no reason to use handles here, we can just mark private element values from objects that store them.
This commit is contained in:
@@ -538,6 +538,9 @@ void ECMAScriptFunctionObject::visit_edges(Visitor& visitor)
|
||||
visitor.visit(property_key_ptr->as_symbol());
|
||||
}
|
||||
|
||||
for (auto& private_element : m_private_methods)
|
||||
visitor.visit(private_element.value);
|
||||
|
||||
m_script_or_module.visit(
|
||||
[](Empty) {},
|
||||
[&](auto& script_or_module) {
|
||||
|
||||
Reference in New Issue
Block a user