mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
LibJS: Make class definition evaluation more spec like in ordering
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 02:08:21 +09:00
Author: https://github.com/davidot Commit: https://github.com/SerenityOS/serenity/commit/1245512c508 Pull-request: https://github.com/SerenityOS/serenity/pull/10470 Issue: https://github.com/SerenityOS/serenity/issues/7044 Issue: https://github.com/SerenityOS/serenity/issues/8574 Reviewed-by: https://github.com/linusg
@@ -275,7 +275,9 @@ void ECMAScriptFunctionObject::visit_edges(Visitor& visitor)
|
||||
visitor.visit(m_home_object);
|
||||
|
||||
for (auto& field : m_fields) {
|
||||
field.name.visit_edges(visitor);
|
||||
if (field.name.is_symbol())
|
||||
visitor.visit(field.name.as_symbol());
|
||||
|
||||
visitor.visit(field.initializer);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user