mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibWeb: Remove Range constructor/prototype caches from WindowObject
These are constructed on the code generator path now instead.
This commit is contained in:
@@ -92,9 +92,6 @@ void WindowObject::initialize()
|
||||
define_property("location", heap().allocate<LocationObject>(*this, *this), JS::Attribute::Enumerable | JS::Attribute::Configurable);
|
||||
|
||||
ADD_WINDOW_OBJECT_INTERFACES;
|
||||
|
||||
m_range_prototype = heap().allocate<RangePrototype>(*this, *this);
|
||||
add_constructor("Range", m_range_constructor, m_range_prototype);
|
||||
}
|
||||
|
||||
WindowObject::~WindowObject()
|
||||
@@ -104,9 +101,6 @@ WindowObject::~WindowObject()
|
||||
void WindowObject::visit_edges(Visitor& visitor)
|
||||
{
|
||||
GlobalObject::visit_edges(visitor);
|
||||
visitor.visit(m_range_constructor);
|
||||
visitor.visit(m_range_prototype);
|
||||
|
||||
for (auto& it : m_prototypes)
|
||||
visitor.visit(it.value);
|
||||
for (auto& it : m_constructors)
|
||||
|
||||
Reference in New Issue
Block a user