mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:17:44 +00:00
LibJS: Start adding a JS::Realm class (spec's "Realm Record")
This commit is contained in:
parent
8d0dbdeaac
commit
d9c3bafcd9
4 changed files with 56 additions and 0 deletions
17
Userland/Libraries/LibJS/Runtime/Realm.cpp
Normal file
17
Userland/Libraries/LibJS/Runtime/Realm.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibJS/Runtime/Realm.h>
|
||||
|
||||
namespace JS {
|
||||
|
||||
void Realm::visit_edges(Visitor& visitor)
|
||||
{
|
||||
visitor.visit(m_global_object);
|
||||
visitor.visit(m_global_environment);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue