diff options
author | Andreas Kling <kling@serenityos.org> | 2021-12-08 09:57:55 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-08 10:29:54 +0100 |
commit | 4790f9a62877df6583c348e77995ee0a3f26df6b (patch) | |
tree | a87a903c51cd4647a8ce4ebd8f07172166b26bbc /Userland/Libraries/LibJS | |
parent | 212319b25e62b6199d78e40108c0dfed5f9961c0 (diff) | |
download | serenity-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.cpp | 1 |
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); } }; |