mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibJS: Mark the global object in Environment::visit_edges()
This commit is contained in:
parent
d42d655853
commit
89f0e501a0
Notes:
sideshowbarker
2024-07-18 04:16:56 +09:00
Author: https://github.com/awesomekling
Commit: 89f0e501a0
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <LibJS/Runtime/Environment.h>
|
||||
#include <LibJS/Runtime/GlobalObject.h>
|
||||
#include <LibJS/Runtime/VM.h>
|
||||
|
||||
namespace JS {
|
||||
|
@ -23,6 +24,7 @@ void Environment::initialize(GlobalObject& global_object)
|
|||
void Environment::visit_edges(Visitor& visitor)
|
||||
{
|
||||
Cell::visit_edges(visitor);
|
||||
visitor.visit(m_global_object);
|
||||
visitor.visit(m_outer_environment);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue