mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-14 13:01:55 +00:00
This patch makes the following name changes: - ScopeObject => EnvironmentRecord - LexicalEnvironment => DeclarativeEnvironmentRecord - WithScope => ObjectEnvironmentRecord
29 lines
550 B
C++
29 lines
550 B
C++
/*
|
|
* Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibJS/Runtime/EnvironmentRecord.h>
|
|
#include <LibJS/Runtime/VM.h>
|
|
|
|
namespace JS {
|
|
|
|
EnvironmentRecord::EnvironmentRecord(EnvironmentRecord* parent)
|
|
: Object(vm().environment_record_shape())
|
|
, m_parent(parent)
|
|
{
|
|
}
|
|
|
|
EnvironmentRecord::EnvironmentRecord(GlobalObjectTag tag)
|
|
: Object(tag)
|
|
{
|
|
}
|
|
|
|
void EnvironmentRecord::visit_edges(Visitor& visitor)
|
|
{
|
|
Base::visit_edges(visitor);
|
|
visitor.visit(m_parent);
|
|
}
|
|
|
|
}
|