1
Fork 0
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:
Linus Groh 2021-09-11 19:20:07 +01:00
parent 8d0dbdeaac
commit d9c3bafcd9
4 changed files with 56 additions and 0 deletions

View 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);
}
}