From 4790f9a62877df6583c348e77995ee0a3f26df6b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 8 Dec 2021 09:57:55 +0100 Subject: [PATCH] LibJS: Make sure private environments are marked during GC --- Userland/Libraries/LibJS/Runtime/VM.cpp | 1 + 1 file changed, 1 insertion(+) 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& roots) } roots.set(execution_context->lexical_environment); roots.set(execution_context->variable_environment); + roots.set(execution_context->private_environment); } };