mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +00:00
LibJS: Mark the global object in Environment::visit_edges()
This commit is contained in:
parent
d42d655853
commit
89f0e501a0
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <LibJS/Runtime/Environment.h>
|
#include <LibJS/Runtime/Environment.h>
|
||||||
|
#include <LibJS/Runtime/GlobalObject.h>
|
||||||
#include <LibJS/Runtime/VM.h>
|
#include <LibJS/Runtime/VM.h>
|
||||||
|
|
||||||
namespace JS {
|
namespace JS {
|
||||||
|
@ -23,6 +24,7 @@ void Environment::initialize(GlobalObject& global_object)
|
||||||
void Environment::visit_edges(Visitor& visitor)
|
void Environment::visit_edges(Visitor& visitor)
|
||||||
{
|
{
|
||||||
Cell::visit_edges(visitor);
|
Cell::visit_edges(visitor);
|
||||||
|
visitor.visit(m_global_object);
|
||||||
visitor.visit(m_outer_environment);
|
visitor.visit(m_outer_environment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue