mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02: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:
Notes:
sideshowbarker
2024-07-16 22:14:49 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/463931384d Pull-request: https://github.com/SerenityOS/serenity/pull/22228
@@ -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