summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-12-08 09:57:55 +0100
committerAndreas Kling <kling@serenityos.org>2021-12-08 10:29:54 +0100
commit4790f9a62877df6583c348e77995ee0a3f26df6b (patch)
treea87a903c51cd4647a8ce4ebd8f07172166b26bbc /Userland/Libraries/LibJS
parent212319b25e62b6199d78e40108c0dfed5f9961c0 (diff)
downloadserenity-4790f9a62877df6583c348e77995ee0a3f26df6b.zip
LibJS: Make sure private environments are marked during GC
Diffstat (limited to 'Userland/Libraries/LibJS')
-rw-r--r--Userland/Libraries/LibJS/Runtime/VM.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/VM.cpp b/Userland/Libraries/LibJS/Runtime/VM.cpp
index e668e2b512..216ccd759a 100644
--- a/Userland/Libraries/LibJS/Runtime/VM.cpp
+++ b/Userland/Libraries/LibJS/Runtime/VM.cpp
@@ -110,6 +110,7 @@ void VM::gather_roots(HashTable<Cell*>& roots)
}
roots.set(execution_context->lexical_environment);
roots.set(execution_context->variable_environment);
+ roots.set(execution_context->private_environment);
}
};